Free Sample
+ Collection

Flex 3 with Java

Satish Kore

Develop rich internet applications quickly and easily using Adobe Flex 3, ActionScript 3.0 and integrate with a Java backend using BlazeDS 3.2
RRP $23.99
RRP $39.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847195340
Paperback304 pages

About This Book

  • A step-by-step tutorial for developing web applications using Flex 3, ActionScript 3.0, BlazeDS 3.2, and Java
  • Build efficient and seamless data-rich interactive applications in Flex using a combination of MXML and ActionScript 3.0
  • Create custom UIs, Components, Events, and Item Renders to develop user friendly applications
  • Build an end-to-end Flex e-commerce application using all major features of Flex covered throughout the book

Who This Book Is For

This book is a good starting point for any developer with a little experience in Java programming to get going with Adobe Flex 3 and ActionScript 3.0 development. You may be a software developer/professional who wishes to learn and understand Flex 3 technology for developing Rich Internet Applications. If you are a system analyst who wants to explore and understand Flex 3 then this is an ideal book for you.

Table of Contents

Chapter 1: Installing and Configuring Adobe Flex
Installing open source Flex 3 SDK
Flex compilers
Installing Flex Builder 3
Creating a Flex project
Chapter 2: Introduction to Flex 3 Framework
How Flex works
Compiling and running an application
About MXML
Using events in MXML
Creating custom events
Validating and formatting data
Data binding
Creating MXML custom components
Understanding Flex itemRenderers
Chapter 3: Introduction to ActionScript 3.0
ActionScript 3.0 language features
ActionScript 3.0 fundamentals
Using ActionScript 3.0 with MXML
Working with events
Chapter 4: Using External API and LocalConnection
Using External API
Using LocalConnection
Chapter 5: Working with XML
XML basics
Understanding E4X
Loading external XML documents
An example: Building a book explorer
Chapter 6: Overview of LiveCycle Data Services and BlazeDS
LiveCycle Data Services
BlazeDS vs LiveCycle Data Services
Chapter 7: Flex Data Access Methods
Flex data access components
Chapter 8: Communicating with Server-side Java
The HTTPService class
Chapter 9: Debugging Techniques
Flash Debug Player
Chapter 10: Styling your Application
Using inline styles
Using external CSS files
Loading stylesheets at runtime
Chapter 11: Packaging and Deployment
Packaging your application
Using Flex Ant Tasks
Deploying your application
Chapter 12: Internationalization and Localization
Internationalization (i18n) and localization (l10n)
Localization of Flex applications
Chapter 13: Creating an E-commerce Application
The general anatomy of the application
Let's start coding

What You Will Learn

  • Install and configure Flex 3.0 SDK and Flex Builder 3 to build and deploy Flex Rich Internet Applications
  • Discover the Flex application architecture and how to use MXML language to write Flex applications
  • Learn to mix ActionScript and MXML code to write Flex applications, use Events, create custom events, and create and use custom components
  • Use External API and LocalConnection to enable communication between ActionScript and JavaScript and from SWF to SWF
  • Build a sample book explorer application with XML using the E4X approach in Flex
  • Use Adobe LiveCycle Data Services and BlazeDS components for accessing server-side data
  • Discover data access methods such as HTTPService, WebService, and RemoteObjects with code examples and learn how to use them to send and receive remote data
  • Use BlazeDS or LCDS proxy services to access data by eliminating the need for a cross-domain policy file
  • Interact with the server environment and access backend data sources to send and receive remote data in your Flex application.
  • Develop Flex applications to communicate with JSP and process data sent by the server in your Flex application.
  • Debug your application in the production environment using various debugging techniques along with Flex Builder'ۧs debugger and some third-party tools
  • Learn various ways of packaging your Flex application using Flex Builder 3 and Ant Script
  • Customize your application's look and feel using external CSS and learn how to utilize runtime CSS for changing your application's look and feel dynamically
  • Use internationalization techniques to customize your application for multiple locales
  • Localize Flex applications by using ResourceManager class; learn the technique to create resource bundle modules and load them at runtime to change locale dynamically 

Chapter 1: Installing and Configuring Adobe Flex – In this chapter you will learn thebasics of Flex programming: downloading, installing, and configuring Flex SDK and Flex Builder 3.

Chapter 2: Introduction to Flex 3 Framework – This chapter will introduce you to MXML scripting for laying out User Interfaces (UI) in the Flex world; it also provides hand-on examples to get you started with MXML programming.

Chapter 3: Introduction to ActionScript 3.0 – This chapter will introduce you to the ActionScript 3.0 programming along with detailed code samples.

Chapter 4: Flex and JavaScript Communication – In this chapter you will learn how to communicate with JavaScript from a Flex application and vice versa.

Chapter 5: Working with XML – In this chapter you will learn how to work with XML data using Flex's E4X approach.

Chapter 6: Overview of BlazeDS and LiveCycle Data Service – This chapter provides an overview of BlazeDS and LiveCycle Data Service.

Chapter 7: Flex Data Access Methods – This chapter provides in-depth information about data access methods available in Flex with detailed and step-by-step code samples along with a Flash player security model. It also gives you a detailed insight on how to use RemoteObject to communicate with Java code.

Chapter 8: Communicating with Server-Side Java - This chapter provides step-by-step code examples to get started with Flex and Java communication along with clear and simple code examples.

Chapter 9: Debugging Techniques – In this chapter you will learn how to debug your Flex application using Flex Builder 3 and some third-party tools.

Chapter 10: Packaging and Deployment – You will learn how to build and package the Flex application using available tools such as Apache Ant and learn about various deployment options that you can use.

Chapter 11: Styling Your Application – This chapter gives an overview of using Cascading Style Sheets (CSS) for changing look and feel of your Flex application and components with brief code examples and tools for designing CSS files.

Chapter 12: Internationalization – This chapter will give you an overview of internationalizing your application.

Chapter 13: Creating an e-Commerce Application – This chapter provides a step-by-step guide for creating an end-to-end e-commerce application using Flex 3, ActionScript 3.0, BlazeDS, and Java.

In Detail

Flex 3 is a great technology for developing Rich Internet Applications for the Web as well as for the desktop. If you are a developer looking to design great-looking and sophisticated user interfaces that resemble desktop-based applications, and want to utilize an existing server technology such as Java to develop RIAs, this book is for you.

Targeting developers who want to get started with Adobe Flex 3 programming, this simple and clear handbook introduces Flex technology quickly and straightforwardly. Utilizing your existing knowledge of Java, it gives you the insight and hands-on experience to program with Flex 3.

This book provides comprehensive information on various aspects of Flex 3 and ActionScript 3.0. These include developing simple applications, handling events, creating custom components and events, using RPC services, integration with Java and BlazeDS, styling and formatting, and how to package and deploy Flex applications.

You will start with downloading, installing and configuring Flex 3 SDK and Flex Builder 3 and learn basic concepts such as what MXML and ActionScript are, understanding UI components, controls, compilers, and more. Further you will develop simple applications and slowly advance into more depth where you will learn advanced concepts such as creating custom components, debugging, integrating with Java, using RPC services, styling, internationalizing, and deploying Flex applications, and more.

One of the things you're really going to love about this book is that you will develop a full-blown e-commerce application using a combination of Flex 3, ActionScript 3.0, BlazeDS 3.2, and Java. At the end of the book you will have the knowledge and experience needed to develop Rich Internet Applications.


Read More