Recipe 22.2. Using the Mobile EmulatorProblemYou want to test a Flash Lite movie. SolutionView the movie in the Mobile Emulator. DiscussionFlash MX 2004 included a very simple (and often confusing) Flash Lite emulator. Flash 8 includes a new Mobile Emulator, which provides greatly enhanced Flash Lite testing capabilities. To use the Mobile Emulator:
When issuing the Test Movie command on a Flash Lite document, the Mobile Emulator is launched in place of the standard Test Movie window. If you created the movie using a device template (see Recipe 22.1 for discussion of device templates), the Test Device list is pre-populated with the appropriate devices. If you set the document's publish settings to Flash Lite manually, the Test Device list is populated with your default device list or <None Selected>. Flash 8 initially ships with more than 90 device emulators for your testing needs. The devices are grouped by content type, manufacturer, carrier, and platform. There are 22 different Flash Lite content types (also known as application modes). Each Flash Lite device supports a subset of this group. Some devices, for example, can support Flash animations for incoming calls. In this chapter, and in the Flash Lite development community, focus is on content for the Standalone Player and Browser content types, as these content types support the most advanced set of features. The Standalone Player is the content type we will be working with in Recipe 22.4. The Browser content type is used when you want to deploy Flash content inline to mobile web browsers that support Flash Lite content. To select target devices for testing:
The devices you have selected are now available in the Test Device menu. Each time you change your selection, the selected device loads in the right panel, and your movie loads into that device. You can test the interactivity of your movie using either the keyboard or by mousing over the buttons on the device skin. By default, the Trace and Warnings checkboxes are enabled. The output window will warn you if, for example, an ActionScript function you have called is unsupported by the selected device. Additionally, try enabling the Information checkbox for more instruction. When the movie loads, you are presented with detailed information regarding this device's features and capabilities. See Figure 22-1 for an example of testing a remote webcam monitoring application in the Flash Professional 8 Mobile Emulator. Figure 22-1. Testing a remote webcam monitoring application in the Flash Professional 8 Mobile Emulator |
Tripod >> 3pod Tips & Learning and manuals for educations