You can use ActionScript 2.0 or ActionScript 1.0 syntax when you develop applications for
Flash Lite 2.0. ActionScript 2.0 provides authoring support for classes, interfaces, and strict
data typing. Using ActionScript 2.0 syntax lets the ActionScript compiler provide better
debugging information, and also encourages better program design.
For more information about learning Flash Lite 2.0 ActionScript, see the following books and
topics:
Introduction to Flash Lite 2.x ActionScript
■
Flash Lite 2.x ActionScript Language Reference
■
Learning ActionScript 2.0 in Using Flash
■
Device video playback
Flash Lite 2.0 can play video in any format that's supported natively by the target device. For
example, some devices record and playback video in the 3GP video format. Others support
AVI or MPEG video. During playback, Flash Lite passes the original video data to the device
to decode and render the data directly to the screen. You can incorporate video in your
application in any of the following ways:
Bundle the original video data in the SWF file.
■
Load an external video file from the device's memory card, or over the network.
■
To control video playback in Flash Lite 2.0 you use the ActionScript Video object. First
available in Flash Player 6, the Video object in Flash Lite 2.0 has additional methods for
controlling video, as the
System.capabilities.videoMIMETypes
supports.
For more information about the Video object and using video in Flash Lite, see
video" on page
58.
Loading device-specific sound and image formats
In Flash Lite 2.0, you can load any image or sound file that's in a format supported by the
device. To load external images, you use the
MovieClip.loadMovie()
then you could use the following code to load a PNG file from a web server into the movie
clip instance image_mc:
image_mc.loadMovie("http://www.macromedia.com/images/mobile.png");
and
Video.play()
Video.pause()
array to determine what video formats a device
loadMovie()
method. For example, if the device supports the PNG file format,
methods. You can also use the
"Using device
global function, or the
Flash Lite 2.0 new features
7
Need help?
Do you have a question about the FLASH 8-DEVELOPING FLASH LITE 2.X and is the answer not in the manual?
Questions and answers