Hello World Flash Lite application (Flash Professional only)

In this section, you create a simple Flash Lite application and test it in the Flash Lite emulator. The purpose of this tutorial is to acquaint you with the mobile authoring and testing features in Flash Professional 8 as well as the general workflow for creating Flash Lite content. For a more complete sample application, see Tutorial: Creating a Flash Lite Application (Flash Professional Only).

For the purposes of this tutorial, assume that you're developing content for the Flash Lite 2.0 stand-alone player. (As of this writing, no commercially available devices support Flash Lite 2.0 so, for this tutorial, you'll target a generic device.)

First, decide which devices and Flash Lite content type you are targeting. To begin development, configure your Flash document's publish, document, and device settings for the target device and content type.

To configure and create a simple Flash Lite application:

  1. Create a new document in Flash Professional 8, and save it as helloworld.fla.
  2. Open the Publish Settings dialog box (File > Publish Settings), click the Flash tab, and select Flash Lite 2.0 from the Version pop-up menu. Click OK.
  3. To open the Device Settings dialog box, select File > Device Settings or click Device Settings in the Property inspector (Window > Properties> Properties).



  4. In the Device Settings dialog box, do the following:
    1. Select Standalone Player from the Content Type pop-up menu.
    2. In the list of available devices, double-click the Flash Lite 2.0 folder to open it, double-click the Generic folder, and then double-click the Generic Phone device to add it to your list of test devices.

      The bottom of the Device Settings dialog box displays information about the selected device, including the available Stage area. The available Stage size indicates the screen area that your SWF file will occupy on the target device. For your generic device, the available Stage size is 176 x 208. Your Flash document's Stage size should always match the available Stage area; otherwise, Flash Lite scales the SWF file to fit the available Stage area. For more information, see About screen size and available Stage size (Flash Professional only) in Developing Flash Lite 2.x Applications.

  5. Click OK to close the Device Settings dialog box.
  6. Open the Document Properties dialog box (Modify > Document), set the Stage width to 176 and the Stage height to 208, and then click OK.

    Remember that these dimensions match the ones indicated by the Available Stage property in the Device Settings dialog box.

    You may want to save this document as a template to save time when you create other Flash Lite applications. A template lets you create a new document that's pre-configured with document and device settings. For more information, see Creating a Flash Lite document template (Flash Professional only).

  7. In the Tools panel, select the Text tool and drag to create a text box on the Stage.

    Type Hello, world! (or other text) in the text box.

  8. Select Control > Test Movie to view your application in the Flash Lite emulator.