Flex 3 with Java


Flex 3 with Java
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$17.99
save 25%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 304 pages [ 235mm x 191mm ]
Release Date : June 2009
ISBN : 1847195342
ISBN 13 : 9781847195340
Author(s) : Satish Kore
Topics and Technologies : All Books, Application Development, Java, Open Source


Table of Contents

Preface
Chapter 1: Installing and Configuring Adobe Flex
Chapter 2: Introduction to Flex 3 Framework
Chapter 3: Introduction to ActionScript 3.0
Chapter 4: Using External API and LocalConnection
Chapter 5: Working with XML
Chapter 6: Overview of LiveCycle Data Services and BlazeDS
Chapter 7: Flex Data Access Methods
Chapter 8: Communicating with Server-side Java
Chapter 9: Debugging Techniques
Chapter 10: Styling your Application
Chapter 11: Packaging and Deployment
Chapter 12: Internationalization and Localization
Chapter 13: Creating an E-commerce Application
Index
  • Chapter 1: Installing and Configuring Adobe Flex
    • Installing open source Flex 3 SDK
      • Installation directory structure
      • About configuration files
    • Flex compilers
      • Using compc—the component compiler
      • Using mxmlc—the application compiler
    • Installing Flex Builder 3
    • Creating a Flex project
      • UI designer and source code editor
      • Flex LiveDocs
    • Summary
  • Chapter 2: Introduction to Flex 3 Framework
    • How Flex works
    • Compiling and running an application
    • About MXML
      • Understanding namespaces
      • Using namespaces in your code
    • Containers
      • Layout manager
      • Layout containers
      • Using Box, HBox, and VBox containers
      • Navigator containers
      • Form containers
      • Constraint-based layout
    • Using events in MXML
    • Creating custom events
    • Validating and formatting data
      • Restricting user entry
      • Formatting
    • Data binding
      • Using the [Bindable] metadata tag
    • Creating MXML custom components
    • Understanding Flex itemRenderers
      • Drop-in itemRenderers
      • Inline itemRenderers
      • External itemRenderers
    • Summary
  • Chapter 3: Introduction to ActionScript 3.0
    • ActionScript 3.0 language features
      • Strict data typing
      • Runtime exceptions
      • Sealed classes and dynamic classes
      • Method closure
      • XML and E4X
      • New primitive data types
      • Regular expressions
      • Object-oriented programming
    • ActionScript 3.0 fundamentals
      • Variables
      • Access modifiers
      • Packages
      • Classes and interfaces
        • Classes
        • Interfaces
        • Implementing an interface in a class
        • Inheriting classes
      • Functions and methods
        • Named functions
        • Anonymous functions
        • Function parameters
      • Setter and getter methods
      • Flow control and looping
        • If/else statement
        • switch statement
        • Looping
      • Exceptions and error handling
        • try…catch…finally statements
        • Create your own custom Error class object
      • Reserved words and keywords
    • Using ActionScript 3.0 with MXML
      • Using the <mx:script> tag
      • Using the include directive
    • Working with events
      • Registering event handlers
      • Dispatching an event
      • About the target and currentTarget properties
      • Event propagation
        • Capturing phase
        • Targeting phase
        • Bubbling phase
      • Creating custom events
      • Creating and using ActionScript components
      • The commitProperties() method
      • The createChildren() method
      • The layoutChrome() method
      • The measure() method
      • The updateDisplayList() method
    • Summary
  • Chapter 4: Using External API and LocalConnection
    • Using External API
      • Using the ExternalInterface class
        • Getting information about external container
      • Calling JavaScript code from ActionScript
      • Calling ActionScript code from JavaScript
    • Using LocalConnection
      • Summary
  • Chapter 5: Working with XML
    • XML basics
    • Understanding E4X
      • The XML object
      • The XMLList object
      • Working with XML objects
      • Using XML as dataProvider
    • Loading external XML documents
    • An example: Building a book explorer
    • Summary
  • Chapter 7: Flex Data Access Methods
    • Flex data access components
      • The HTTPService class
        • Using the HTTPService tag in MXML
        • An example of HTTPService
        • Using the HTTPService class in ActionScript
      • The WebService class
        • Using the WebService tag in MXML
        • An example of WebService
        • WSDL document
        • Using the WebService class in ActionScript
        • Working with SOAP headers
      • The RemoteObject class
        • Using the RemoteObject tag in MXML
        • An example of RemoteObject
        • Working with strongly-typed objects
      • Understanding the Flash Player security sandbox
        • Understanding the cross-domain policy file
        • Creating a proxy service
    • Summary
  • Chapter 9: Debugging Techniques
    • Flash Debug Player
      • Using client-side logging
      • Flex Builder Debugger
        • The Debug view
        • The Variables view
        • The Breakpoints view
        • The Expressions view
      • Network monitoring
        • ServiceCapture
        • Charles Web Debugging Proxy
    • Summary
  • Chapter 11: Packaging and Deployment
    • Packaging your application
    • Using Flex Ant Tasks
    • Deploying your application
      • Flex deployment options
        • Using a single SWF file deployment
        • Using web-tier compilation
    • Summary

Satish Kore

Satish Kore hails from Bangalore, the IT capital of India. He has more than 8 years experience in the technology world, spread across multiple technologies and domains, and he has extensive knowledge of Java, J2ME and Adobe Flex, ActionScript, and so on. He is a Principle Engineer at multinational company in Bangalore, India. He is a Flex enthusiast and evangelist and has been working on Flex since its early 1.5 version days. His application built using Flex 3 has won a best-application award from Flash-based telephony company Ribbit (http://www.ribbit.com). You can visit his blog for more information at http://blog.satishkore.com.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Flex 3 with Java +    NumPy Cookbook =
50% Off
the second eBook
Price for both: $34.95

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • 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.

A practical guide on how to design, develop, and deploy Rich Internet Applications using Flex 3, ActionScript 3.0, BlazeDS 3.2, and Java

Approach

The author's experience in creating applications using Flex enables him to share insights on using it effectively in a clear, simple, and concise manner. His approach will help you gain hands-on programming experience in Flex 3 and ActionScript 3.0. The book focuses on important features of Flex 3 and ActionScript 3.0 and gives clear instructions and precise code examples to explain features and ensure that you actually learn as you read.

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.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software