Creating a Flash Lite document template

When you're developing Flash Lite content, you'll often target the same device, or group of devices, and Flash Lite content type. For example, you might be developing content for the stand-alone Flash Lite player running on the Series 60 devices from Nokia. To facilitate the authoring process, it can be useful to create a template that has the appropriate Stage size, publish settings, test devices, and Flash Lite content type preconfigured for your application.

In this section, you'll create a document template that has a Stage size of 176 x 208 and targets the stand-alone Flash Lite 2.0 player. You can use this template to create new documents.

To create a new Flash Lite document template:

  1. In Flash, select File > New.
  2. On the General tab in the New Document dialog box, select Flash Mobile Document, and click OK.
  3. Select File > Publish Settings to open the Publish Settings dialog box.
  4. Click the Flash tab in the Publish Settings dialog box, select Flash Lite 2.0 from the Version pop-up menu, and then select ActionScript 2.0 from the ActionScript Version pop-up menu. Click OK.
  5. Select Modify > Document to open the Document Properties dialog box.
  6. Type 176 in the Width text box and 208 in the Height text box. Click OK.
  7. If desired, enter any code you will typically include for the target device and content type. For example, the following steps add ActionScript to set the content to full screen:
    1. Create a new layer by clicking the Insert Layer button at the bottom of the Timeline or selecting Insert > Timeline > Layer.
    2. Select the layer name and type ActionScript.
    3. Open the Actions panel (Window > Actions) and enter the following code:
      fscommand2("FullScreen", true);
      
  8. Select Control > Test Movie to open Device Central.
  9. Click the Device Profiles tab.
  10. In the list of Available Devices, expand the folders to select the desired device(s).
  11. Select the desired device and drag it to the desired device set in the Device Sets panel.
  12. Select File > Return to Flash to close Device Central and return to your Flash file.
  13. Select File > Save As Template to save the document as a template.
  14. In the Save As Template dialog box, type Flash Lite 2-0 - Symbian Series 60 in the Name text box.
  15. From the Category list, select Global Phones.
  16. If desired, enter a description of the template in the Description text box (as many as 255 characters).

    The description appears when the template is selected in the New Document dialog box.

  17. Click Save.

After you create and save the template, you can use it to quickly create a new document that has the same publish settings, device settings, and Stage size.

To create a new document from the template you just created:

  1. In Flash, select File > New.
  2. In the New Document dialog box, select the Templates tab.
  3. From the list of available template categories on the left, select Global Phones, which is the name of the category that you specified when you created the template.
  4. From the list of templates on the right, select Flash Lite 2-0 - Symbian Series 60, which is the name of the template that you specified when you created the template.
  5. Click OK to create the new document.

    A new document that is configured with the same publish settings, device settings, and Stage size as the template appears.


Flash CS3