As promised in my presentation at Adobe Max 2007 in Chicago, I am posting all the examples and source code.
Using Flash and Flex Together
- Learn how to effectively use Flash and Flex together in applications from a designer’s perspective.
- Implement designs typically created in Flash and Photoshop.
- “Make or break” points that determine if you are doing something in Flex you should probably do in Flash instead, and vice versa.
- Integration features provided by Flash CS3 Professional and Flex Builder
These photos show you what a Flex application can look like using the new Flash Component Kit. Below the images is a link to the live example. Please note this is a “down and dirty” example created to show the possibilities, and has very limited functionality.
Click on the top left button to see the Flash component expand. These are buttons in a Flex VBox.Notice how the buttons below properly shift to maintain the correct spacing.
Click play on the audio player to see this Flash component work properly in Flex.

This example shows a Flash container used to contain a Flex DataGrid component. Click on the top right to open the “Cart”.
This video player was created in Flash and used in the Flex application. It is using the Flash FLVPlayback component within Flex. Click on the little “Plus button” to open the video player.
Click here to see the live example…
Here are some individual examples of the various features of the Flash Component Kit. I have included all of the source code. The Flex project includes all of the example FLAs and MXML code.
- Download the MaxPresentation Flex project archive.
- Import the zip archive as a “Flex Project”. It will unzip and take it from there.
- To use the included FLA examples, you will need to change the classpath in the FLA to the local source (src) directory of the Flex project Some of the FLAs use externaclasses that are within this folder, and the directory will be incorrect. Be sure to delete the old classpath (points to the src dir on my machine).
- Update the classpath in the project properties to add your Flash CS3 ActionScript 3.0 Classes…only do this if you want to edit the Classes in Flex that are for the FLAs.
- Download the presentation PDF.
- Get the latest Adobe documentation.
Here are the published examples:
- Stateless Check Box Example
- Stateful Check Box Example
- Flash Video Player used as Flex Component Example
- Example of Resizing a Flash component from Flex (Just make the window small to see the Flash component react)
- Example of dispatching a custom event from Flash to Flex (Drag the icon into the folder to see Flex receive the Flash component’s event)
- Example of using View States in a Flash component triggered by Flex (and used as a Flex component skin. Its a skinned Flex CheckBox Component)
- Example of Focus Management from Flash to Flex (Click on the content to give focus to the Flex application and tab from Flex to Flash)
- Example of triggering a Flex Tool Tip from within a Flash Component
- Example of the usage of a Bounding Box in a Flash Component
- Example of using a Flash Component as a Flex Container (ie. Panel component)

