Flex Experiments

This page is for collecting my experiments with Adobe Flex. Each project below represents a small experiment with some aspect of Flex and Flash that might prove useful for the future. I am using the brand-new Flash Builder 4 with Eclipse. Each project will be shown here as a separate Flash file, with source code embedded. To view the source for a particular project, right-click the flash page itself and choose 'View Source'.

To view any Flash file here, you'll need Adobe Flash 10. You can get it here.

Flex Demo 8 - Streaming External Sound

View Flex Demo 8

This sample demonstrates streaming an external sound file from within a Flex application.



Flex Demo 7 - Playing Embedded Sound

View Flex Demo 7

This sample demonstrates the ability to play sound samples that are embedded within the swf file itself. Embedding the sound file within the swf should usually be used when the sounds are relatively small and short, or they need to be loaded quickly.

Flex Demo 6 - Simple Transitions

View Flex Demo 6

This demo is very similar to Demo 5, but we have added a simple transition between each screen.

Flex Demo 5 - View Stack and Handling Keystrokes

View Flex Demo 5

This demo addresses using a ViewStack and handling keystrokes. In this case, we handle keystrokes on a application-wide basis.

Flex Demo 4 - Using Bindable Variables

View Flex Demo 4

This demostrates using the 'Bindable' keyword and overwriting default values for an object.

Flex Demo 3 - Load Images at Runtime

View Flex Demo 3

This sample demonstrates a simple image display application.

Flex Demo 2 - Basic Interaction

View Flex Demo 2

This program demonstrates a very basic interaction -- a listener for a button.

Flex Demo 1 - Basic Spark Components

View Flex Demo 1

This program demonstrates just how little code is needed to create a fully working Flex application! Of course, the components don't really do anything, but at least they are displaying. The following code is all that is needed to create this application: