Page 2
If you access a third-party website mentioned in this guide, then you do so at your own risk. Macromedia provides these links only as a convenience, and the inclusion of the link does not imply that Macromedia endorses or accepts any responsibility for the content on those third-party sites.
Introduction This manual provides an introduction to Macromedia Flash Lite and the authoring features in Macromedia Flash Professional 8 for Flash Lite developers. What’s new in Flash Lite authoring Flash Professional 8 includes the following new features to help developers...
Mobile and Devices Developer Center at www.macromedia.com/devnet/devices/. For TechNotes, documentation updates, and links to additional resources in the Flash Lite developer community, see the Macromedia Flash Lite Support Center at www.macromedia.com/support/flashlite/. Introduction...
Typographical conventions The following typographical conventions are used in this book: Italic font indicates a value that should be replaced (for example, in a folder path). indicates ActionScript code. Code font indicates an ActionScript parameter. Code font italic Bold font indicates a verbatim entry. Double quotation marks ( ) in code examples indicate delimited ""...
About the stand-alone Flash Lite player ..... . 23 About Flash Lite technology Macromedia Flash Lite is a version of Macromedia Flash Player designed for mobile phones. It balances Flash features and capabilities with the processing power and configurations of today’s mass market mobile...
Some devices come with Flash Lite pre-installed from the device manufacturer or mobile operator, while on others it can be installed after purchase. For the most current list of devices that support Flash Lite, see the Supported Devices page located at www.macromedia.com/mobile/ supported_devices/. Flash Lite Overview...
As of this writing, the Flash Lite stand-alone player is not pre-installed on any globally available devices. You can purchase the stand-alone player for development purposes from the Macromedia online store at www.macromedia.com/store/. Regionally available devices that support Flash Lite comprise a larger group of devices than are available globally.
Flash application that's running as a screen saver is not typically allowed to make network connections or download data. The Flash Lite testing features in Macromedia Flash Professional 8 let you test against multiple devices and different Flash Lite content types. This lets you determine if your application uses features that aren't available for the type of content that you are developing.
Page 13
Test the application on your target device or devices This step is important because the emulator doesn’t emulate all aspects of the target device, such as its processor speed, color depth, or network latency. For instance, an animation that runs smoothly on the emulator might not run as quickly on the device, due to its slower processor speed.
Flash Lite authoring features in Flash Professional 8 (Flash Professional Only) This section discusses the features in Flash Professional 8 designed specifically for Flash Lite developers. With the exception of the device templates feature, the following features are only available when your document’s Version setting on the Flash tab of the Publish Setting dialog box is set to either Flash Lite 1.0 or Flash Lite 1.1.
Page 15
The Device Settings dialog box lets you select the test devices and Flash Lite content type that you want to test against in the Flash Lite emulator. Different devices support different media types (for example, different types of device sound formats) as well as different Flash Lite content types, such as stand-alone player, screensaver, or browser.
The Property inspector contains a section that provides information about your current device settings, as well as a button that lets you open the Device Settings dialog box. This button is active only when your document’s Version setting on the Flash tab of the Publish Setting dialog box is set to Flash Lite 1.0 or Flash Lite 1.1.
Page 17
As the following figure shows, Flash Lite document templates are organized into two groups: Global Phones and Japanese Phones. The name of each template in each group includes the target Flash Lite platform (Flash Lite 1.0 or Flash Lite 1.1) and the target content type (for example, Browser or Wallpaper).
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.
Page 19
Select the Text tool in the Tools panel, and drag a text box on the Stage. Type Hello, world! in the text box (or whatever text you prefer). Select Control > Test Movie to view your application in the Flash Lite emulator.
Page 20
The following procedure results in the same Hello World sample application as the previous one, but demonstrates how to manually configure your document’s settings. To configure and create a simple Flash Lite application manually: Create a new document in Flash Professional 8, and save it as helloworld.fla.
Page 21
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 a stand-alone Flash Lite application running in full-screen mode on a Nokia Series 60 device, the available Stage size is 176 x 208.
Page 22
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 those indicated by the Available Stage property in the Device Settings dialog box. Select the Text tool in the Tools panel, and drag a text box on the Stage.
Sony Ericsson P900, P910 If you’re a developer, you can purchase the stand-alone Flash Lite 1.1 player for these supported devices from the Macromedia online store at www.macromedia.com/store/. For a list of commonly asked questions about purchasing the stand-alone player, see the Flash Lite 1.1 FAQ at www.macromedia.com/go/bb660cc2/.
Creating a Flash Lite Application (Flash Professional Only) In this section, you’ll develop a Macromedia Flash Lite application that promotes a fictional restaurant called Café Townsend. Users can view a list of specials at the restaurant and call the restaurant to make reservations.
SWF file to your device to view it there. To view the completed application in the emulator: In Macromedia Flash Professional 8, open the file named cafe_tutorial_complete.fla located in the /Samples and Tutorials/ Tutorial Assets/Flash Lite/Cafe/ folder where you installed Flash Professional 8 (for example, C:/Program Files/Macromedia/Flash 8/ Samples and Tutorials/Tutorial Assets/Flash Lite/Cafe/).
To interact with the application, do the following: On the main screen, click the Down Arrow key on the emulator’s keypad to select the Specials menu item. Then click the Select key on the emulator to view the specials screen. On the specials screen, click the Right soft key (Next) on the emulator to view the image and description for each special.
Page 28
60 devices from Nokia that support the stand-alone version of Flash Lite 1.1. (This is the developer version of Flash Lite available for purchase at the Macromedia online store at www.macromedia.com/store/.) You use the Device Settings dialog box to select the device(s) and content type that you are targeting.
Page 29
With the Nokia folder selected, click Add to add all the Nokia Series 60 devices to your list of test devices. When you test your application in the emulator, you’ll be able to test your application against any of your test devices for the selected content type.
Page 30
The menu consists of two standard Flash buttons that define up, over, and down states. The user gives focus to one of the buttons by pressing the Up or Down Arrow keys on their device. When a button has focus it displays its over state.
Page 31
Add the following code to the Actions panel: on(press) { gotoAndStop("specials"); This event handler code sends the playhead to the frame labeled when the user selects this button. You’ll create the content specials for that frame in the next section (see “Creating the specials screen (Flash Professional Only)”...
Page 32
To test your work so far, select Control > Test Movie. In the emulator, click the Up or Down Arrow keys on the keypad with your mouse (or press the Up or Down Arrow keys on your computer’s keyboard) to give focus to the Specials button. When the Specials button item gets focus, you will see the button’s over state.
Page 33
Creating the image animation (Flash Professional Only) In this section you’ll create the tweened animation that transitions between images of each special. When you’ve completed this section, the animation will play through without stopping. Later in the tutorial, you’ll add navigation and ActionScript that lets the user control the animation with the device’s Right soft key.
Page 34
To create the image animation: Open the file you saved in the previous section (see “Creating the menu for the main screen (Flash Professional Only)” on page 29). In the Timeline, select the keyframe on Frame 10 on the layer named Images.
Page 35
To create the mask layer, select the Images layer in the Timeline, and then select Insert > Timeline > New Layer (or click the Insert Layer button in the Timeline). Insert a keyframe on Frame 10 of the new mask layer. Using the Rectangle tool in the Tools palette, create a rectangle over the first (top-most) image in the images movie clip.
Page 36
Save your changes (File > Save). At this point, if you were to test the application in the emulator, the animation you created would play through to the end and then stop. In the next section (see “Adding navigation and text to the specials screen (Flash Professional Only)”...
Page 37
With the text field selected on the Stage, make the following changes in the Property inspector: Select Dynamic Text from the Text Type pop-up menu. Select Verdana from the Font pop-up menu. Select the Italics text style option. Set the font size to 10. Select Bitmap (no anti-alias) from the Font Rendering Method pop-up menu.
Page 38
Open the Actions panel and add the following code: title = "Summer salad"; description = "Butter lettuce with apples, blood orange segments, gorgonzola, and raspberry vinaigrette."; fscommand2("SetSoftKeys", "Home", "Next"); stop(); This code displays the name and description of the special that the user is currently viewing, and stops the playhead.
Page 39
To add navigation to the specials screen: Open the file you completed in the previous section. In the Library panel (Window > Library), locate the symbol named Home and drag it to the lower-left corner of the Stage. In the Property inspector, set the Home graphic’s x coordinate to 0 and its y coordinate to 188.
Page 40
From the Library, drag the Key Catcher button symbol and place it in the work area off the Stage. To view the work area, in Flash choose View > Work Area. Key catcher button Work area The purpose of this button is to “catch” ActionScript keypress events initiated by the user, and then take the appropriate action.
Page 41
Index technology overview 9 Flash Lite authoring features availability of Flash Lite 10 device settings 14 available Stage size 18 emulator 14 Flash Lite content types 11 Flash Lite emulator 14 Cafe Townsend application about 25 creating navigation 36 Hello World application 18 creating the main menu 29 creating the specials animation 33 creating the specials screen 32...
Need help?
Do you have a question about the FLASH 8-GETTING STARTED WITH FLASH LITE and is the answer not in the manual?
Questions and answers