Books & Videos

Table of Contents

  1. Chapter 1 Flex and ActionScript Basics

    1. Create a Flex Project in Flash Builder

    2. Create a Flex Library Project in Flash Builder

    3. Set Compiler Options in Flash Builder

    4. Compile a Flex Project Without Flash Builder

    5. Add an Event Listener in MXML

    6. Create Typed Vectors

    7. Use Event Bubbling

    8. Use Custom Events and Dispatch Data with Events

    9. Listen for a Keyboard Event

    10. Define Optional Parameters for Methods

    11. Define and Implement an Interface

    12. Access the Parent of a Flex Component

  2. Chapter 2 Containers

    1. Position Children Within a Container

    2. Dynamically Add and Remove Children

    3. Reorder Child Elements of a Container

    4. Display Children Using Data Items

    5. Use a Custom Item Renderer in a DataGroup

    6. Use Multiple Item Renderers in a DataGroup

    7. Enable Scrolling in a Container

    8. Scale Children of a Container

    9. Apply Skins to a Container

    10. Set the Background Image of a BorderContainer

    11. Use a Control Bar

    12. Modify Layout of Content Elements in a Panel

    13. Track Mouse Position Within a Container

    14. Drag and Drop Between Visual Containers

    15. Drag and Drop Between Data Containers

    16. Add a Spark Layout Container to a MX Navigation Container

    17. Create a Spark-Based ViewStack

  3. Chapter 3 Layout

    1. Position Children Linearly

    2. Switch Layout Management at Runtime

    3. Align and Size Children Within a Layout

    4. Lay Out Children Using Rows and Columns

    5. Size Children Uniformly

    6. Lazily Create and Recycle Children

    7. Create a Custom Layout

    8. Measure and Alter the Container Size

    9. Dynamically Change the Child Depth in the Layout

    10. Use Matrix3D to Apply Transformations Within a Layout

    11. Use TransformOffsets to Apply Transformations Within a Layout

    12. Create a Custom 3D Layout

    13. Programmatically Scroll Within a Layout

    14. Determine the Visibility of Elements in a Sequence-Based Layout

  4. Chapter 4 Graphics

    1. Size and Position a Graphic Element

    2. Use Path to Draw a Shape with Stroke and Fill

    3. Display Text in a Graphic Element

    4. Display Bitmap Data in a Graphic Element

    5. Display Gradient Text

    6. Apply Bitmap Data to a Graphic Element as a Mask

    7. Create a Custom Shape Element

    8. Create a Custom Standalone Graphic Component

    9. Define and Reuse Graphic Symbols

  5. Chapter 5 Components

    1. Handle a Button’s Click Event

    2. Create a Button Bar

    3. Load a External SWF

    4. Use a Calendar Date Input

    5. Create Event Handlers for Menu-Based Controls

    6. Display an Alert in an Application

    7. Display a Custom Pop Up in a Custom Component

    8. Detect a Mouse Click Outside a Pop Up to Close It

    9. Using s:Scroller to Create a Scrollable Container

    10. Handle focusIn and focusOut Events

    11. Open a DropDownList with a Keyboard Shortcut

    12. Grouping Radio Buttons

    13. Submit a Flex Form to a Server-Side Script

  6. Chapter 6 Skinning and Styles

    1. Create a Skin for s:Button

    2. Apply a Repeating Background Image to an Application

    3. Create a Skin for s:ButtonBar and s:ButtonBarButton

    4. Skin an s:DropDownList

    5. Skin a Spark Container

    6. Change the Appearance of Components Using Styles

    7. Apply Skins and Properties to Spark and MX Components with CSS

    8. Create a Button Component with an Icon

    9. Add Custom Style Properties

    10. Partially Embed Fonts with CSS

  7. Chapter 7 Text and TextFlows

    1. Create a TextFlow Object

    2. Generate a TextFlow Object from Another Source

    3. Create Links in a TextFlow

    4. Add Graphic Elements to a TextFlow

    5. Bind a Value to a s:TextInput Control

    6. Create a Custom Selection Style

    7. Style Links Within a TextFlow

    8. Locate Elements Within a TextFlow

    9. Determine All Fonts Installed on a User’s Computer

    10. Display Vertical Text in a TextArea

    11. Set the Selection in a TextArea

    12. Control the Appearance of the Selected Text

    13. Copy a Character as a Bitmap

    14. Create Linked Containers in a TextFlow

    15. Use a Custom Format Resolver

    16. Skin the TextArea Control

    17. Create Multiple Text Columns

    18. Highlight the Last Character in a TextFlow

  8. Chapter 8 Lists and ItemRenderers

    1. Create an Item Renderer for a Spark List

    2. Create an Editable List

    3. Scroll to an Item in a Spark List

    4. Change the Layout of a Spark List

    5. Create a Nested List

    6. Set XML Data for a Spark List

    7. Allow Only Certain Items in a Spark List to Be Selectable

    8. Format and Validate Data Added in a Spark List Item Editor

    9. Create a Right-Click Menu for a Spark List

    10. Enable Dragging in a Spark List

    11. Customize the Drop Indicator of a Spark List

    12. Display Asynchronously Loaded Data in a Spark List

  9. Chapter 9 DataGrid

    1. Create Custom Columns for a DataGrid

    2. Specify Sort Functions for DataGrid Columns

    3. Filter Items in a DataGrid

    4. Create Custom Headers for a DataGrid

    5. Handle Events from a DataGrid

    6. Enable Drag and Drop in a DataGrid

    7. Edit Items in a DataGrid

    8. Search Within a DataGrid and Autoscroll to the Match

    9. Generate a Summary for Flat Data by Using a Grouping Collection

    10. Create an Async Refresh for a Grouping Collection

  10. Chapter 10 Video

    1. Create a Basic Video Player

    2. Display Video Playback Progress

    3. Create a Skinned Video Player

    4. Display Streaming Video

    5. Display the Bytes Loaded of a Video

    6. Create a Basic Video Player Using the Open Source Media Framework

    7. Access and Display Cue Points Embedded in a Video File

    8. Create a Wrapper for the Open Source Media Framework

    9. Display Captions with the Open Source Media Framework

  11. Chapter 11 Animations and Effects

    1. Dynamically Set a Filter for a Component

    2. Call an Animation in MXML and in ActionScript

    3. Create Show and Hide Effects for a Component

    4. Define Keyframes for an Animation

    5. Create Parallel Series or Sequences of Effects

    6. Pause, Reverse, and Restart an Effect

    7. Set Effects for Adding a Component to or Removing One from a Parent Component

    8. Create Custom Animation Effects

    9. Use the DisplacementMapFilter Filter in a Flex Effect

    10. Use the Convolution Filter to Create an Animation

    11. Use Pixel Bender to Create a Transition

  12. Chapter 12 Collections

    1. Add, Remove, or Retrieve Data from an ArrayList

    2. Retrieve and Sort Data from an ArrayCollection

    3. Filter an ArrayCollection

    4. Determine When an Item Within an ArrayCollection Is Modified

    5. Create a GroupingCollection

    6. Create a Hierarchical Data Provider for a Control

    7. Navigate a Collection Object and Save Your Position

    8. Create a HierarchicalViewCollection Object

    9. Filter and Sort an XMLListCollection

    10. Sort on Multiple Fields in a Collection

    11. Sort on Dates in a Collection

    12. Create a Deep Copy of an ArrayCollection

    13. Use Data Objects with Unique IDs

  13. Chapter 13 Data Binding

    1. Bind to a Property

    2. Bind to a Function

    3. Create a Bidirectional Binding

    4. Bind to Properties by Using ActionScript

    5. Use Bindable Property Chains

    6. Bind to Properties on a XML Source by Using E4X

    7. Create Customized Bindable Properties

    8. Bind to a Generic Object

    9. Bind to Properties on a Dynamic Class

  14. Chapter 14 Validation, Formatting, and Regular Expressions

    1. Use Validators and Formatters with TextInput Controls

    2. Create a Custom Formatter

    3. Use Regular Expressions to Create an International Zip Code Validator

    4. Validate Combo Boxes and Groups of Radio Buttons

    5. Show Validation Errors by Using ToolTips in a Form

    6. Use Regular Expressions for Locating Email Addresses

    7. Use Regular Expressions for Matching Credit Card Numbers

    8. Use Regular Expressions for Validating ISBNs

    9. Create Regular Expressions by Using Explicit Character Classes

    10. Use Character Types in Regular Expressions

    11. Match Valid IP Addresses by Using Subexpressions

    12. Use Regular Expressions for Different Types of Matches

    13. Match Ends or Beginnings of Lines with Regular Expressions

    14. Use Back-References

    15. Use a Look-Ahead or Look-Behind

  15. Chapter 15 Working with Services and Server-Side Communication

    1. Configure a HTTPService

    2. Use RESTful Communication Between Flex Applications

    3. Communicate with a Service That Returns JSON-Formatted Data

    4. Configure Services for an Application Using BlazeDS

    5. Configure and Connect to a RemoteObject

    6. Use Publish/Subscribe Messaging for Chat Applications

    7. Use the IExternalizable Interface for Custom Serialization

    8. Track Results from Multiple Simultaneous Service Calls

    9. Register a Server-Side Data Type Within a Flex Application

    10. Communicate with a WebService

    11. Add a SOAP Header to a Request to a WebService

    12. Parse a SOAP Response from a WebService

    13. Communicate Securely with AMF by Using SecureAMFChannel

    14. Send and Receive Binary Data via a Binary Socket

    15. Communicate Using a XMLSocket

    16. Navigate a XML Document in E4X

    17. Use Regular Expressions in E4X Queries

    18. Add a XMLList to a XML Object

    19. Handle Namespaces in XML Returned by a Service

    20. Encode an ActionScript Data Object as XML

    21. Decode XML from a Web Service into Strongly Typed Objects

  16. Chapter 16 Browser Communication

    1. Link to an External URL

    2. Work with FlashVars

    3. Invoke JavaScript Functions from Flex

    4. Invoke ActionScript Functions from JavaScript

    5. Change the HTML Page Title via BrowserManager

    6. Parse the URL via BrowserManager

    7. Deep-Link to Data via BrowserManager

    8. Deep-Link Containers via BrowserManager

  17. Chapter 17 Modules and Runtime Shared Libraries

    1. Create a Runtime Shared Library

    2. Use Cross-Domain Runtime Shared Libraries

    3. Optimize a Runtime Shared Library

    4. Create a MXML-Based Module

    5. Create an ActionScript-Based Module

    6. Use ModuleLoader to Load Modules

    7. Use ModuleManager to Load Modules

    8. Load Modules from Different Servers

    9. Communicate with a Module

    10. Use Query Strings to Pass Data to Modules

    11. Use Linker Reports to Optimize Modules

  18. Chapter 18 AIR Basics

    1. Create and Run an AIR Application with Flash Builder 4

    2. Sign and Export an AIR Application

    3. Sign an AIR File with a Trusted Certificate

    4. Targeting a Specific Version of AIR

    5. Set the Application ID

    6. Set the Application Name and Filename

    7. Set the Application Version

    8. Edit the Application Description and Copyright Information

    9. Edit the Initial Window Settings

    10. Set the Installation Folder for an Application

    11. Set the Default Programs Menu Folder

    12. Set a Custom Application Icon

    13. Allow an AIR Application to Interact with the Browser

    14. Set the Application to Handle All Updates

    15. Determine the Application Version at Runtime

    16. Create Multilingual AIR Installations

    17. Create Applications with Update Capabilities

    18. Create Applications with Update Capabilities with a Custom Interface

    19. Package an Application in a Native Installer (.exe, .dmg, .rpm)

    20. Include Native Code Within Your AIR Application

  19. Chapter 19 Working with Data in AIR

    1. Safeguard Files with the Encrypted Local Store

    2. Migrate Serialization Changes

    3. Create an In-Memory Database

    4. Encrypt a Database with a Password

    5. Use Parameters in Queries

    6. Include a Database in an Application

    7. Store Simple Relationships with an Object Relational Mapping

  20. Chapter 20 Operating System Integration with AIR

    1. Close All Open Windows at Once

    2. Add a Drop Shadow for a Custom Chrome Window

    3. Use Deferred Rendering with Clipboard Data

    4. Create Custom Clipboard Data Formats

    5. Assign Keyboard Shortcuts to Menu Items

    6. Notify the User Through the Dock (Mac) and the Taskbar (Windows)

    7. Register Custom File Types

    8. Open a File with Its Default Application

    9. Check for Mounted and Unmounted Drives

    10. Obtain a List of Available External Drives

    11. Tell the Operating System That a File Has Been Downloaded from the Web

    12. Deploy an AIR Application as a Native Installer

    13. Create a HTTP Proxy Using the ServerSocket Class

  21. Chapter 21 Charting

    1. Create a Chart

    2. Add Effects to Charts

    3. Select Regions of a Chart

    4. Format Tick Marks for a Chart

    5. Create a Custom Label for a Chart

    6. Create a Drill-Down Effect for a Column Chart

    7. Skin Chart Items

    8. Use ActionScript to Dynamically Add Columns to and Remove Columns from a Chart

    9. Overlap Multiple ChartSeries

    10. Drag and Drop Items in a Chart

    11. Create an Editable Line Chart

  22. Chapter 22 Unit Testing with FlexUnit

    1. Create an Application That Uses the FlexUnit Framework

    2. Create an Application to Run FlexUnit Tests

    3. Create a FlexUnit Test Case

    4. Run Code Before and After Every Test

    5. Share Test Data Between Test Cases

    6. Handle Events in a Test Case

    7. Test Visual Components with FlexUnit

    8. Create Mock Objects for Testing

    9. Use Complex Assertions in a Test Case

  23. Chapter 23 Compiling, Debugging, and Deploying

    1. Use trace Statements Without Flash Builder

    2. Use the Component Compiler

    3. Install the Flex Ant Tasks

    4. Use mxmlc and Ant to Compile Flex Applications

    5. Use Ant to Compile and Deploy Flex Applications That Use RSLs

    6. Use Rake to Compile Flex Applications

    7. Create and Monitor Expressions in the Flash Builder Debugger

    8. Install the Ant View in the Standalone Version of Flash Builder

    9. Use ASDoc and Ant to Generate Documentation

    10. Use Express Install for Your Application

    11. Use Memory Profiling with Flash Builder to View Memory Snapshots

    12. Check the Performance of Specific Methods

  24. Chapter 24 Internationalization, Accessibility, and Printing

    1. Add an International Character Set to an Application

    2. Use a Resource Bundle to Localize an Application

    3. Use the ResourceManager for Localization

    4. Use Resource Modules for Localization

    5. Support Input Method Editor (IME) Devices

    6. Detect a Screen Reader

    7. Create a Tabbing Reading Order for Accessibility

    8. Print Selected Items in an Application

    9. Format Application Content for Printing

    10. Control Printing of Unknown-Length Content over Multiple Pages

    11. Add a Header and a Footer When Printing

  1. Colophon