Introduction Macromedia Flash Lite 1.0 and Flash Lite 1.1, the first versions of Flash Lite, are based on Macromedia Flash Player 4. Flash Lite 2.0 is based on Flash Player 7, but differs from it in the following respects: It does not support ActionScript 2.0 (as used with Flash Player 7 for Flash desktop ■...
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/. Typographical conventions The following typographical conventions are used in this manual: Italic font indicates a value that should be replaced (for example, in a folder path).
CHAPTER 1 Unsupported and Partially Supported ActionScript Elements This chapter describes the global functions and properties, constants, operators, statements, extensions, and keywords that are either partially supported or not supported by ActionScript for Flash Lite 2.0. Commands issued through fsCommand and fsCommand2..... 7 Commands partially supported or unsupported by fsCommand .
Commands unsupported and partially supported by fsCommand The following table lists the commands that are unsupported by when using fsCommand() ActionScript 2.0 to create Flash Lite content. Command Description Closes the projector. quit Specifying sets Flash Player to full-screen mode. fullscreen true Specifying...
Page 9
Command, function, Description Support or keyword Event handler; triggers actions defined for a Partially onClipEvent specific instance of a movie clip. supported Limitations: Supported events are press load , and unload enterFrame keyDown keyup data , and events mouseDown mouseUp mouseMove are supported if either System.capabilities.hasMouse...
Partially supported global properties The following table lists the ActionScript global properties that are partially supported by Flash Lite 2.0. Properties Description Support Read-only property that returns the absolute path in Partially _droptarget slash (/) syntax notation of the movie clip instance on supported which the (the name of a movie...
CHAPTER 2 Unsupported and Partially Supported Classes This chapter describes ActionScript 2.0 classes that are either partially or not supported by Flash Lite 2.0. It also describes the extensions that are specific to ActionScript for Flash Lite 2.0. Button class ............. . . 11 Date class.
Page 12
Property summary The following table lists the properties that are either partially or not supported by the Button class when using ActionScript for Flash Lite 2.0. Property Description Support An object that associates a ContextMenu object Not supported menu with a button. A Boolean value that indicates whether other Partially trackAsMenu...
Event Description Support Invoked when the pointer is dragged over the Partially onDragOver button. Supported if supported System.capabilities.hasMouse are set to System.capabilities.hasStylus true Invoked when the mouse is released while the Partially onReleaseOutside pointer is outside the button after the button is supported pressed while the pointer is inside the button.
Method Description This function sets a parameter to a string that represents the current getLocaleShortDate() date, in abbreviated form, formatted according to the currently defined locale. The parameter is passed in by name. The returned value is a multiple-character, variable-length string. The actual formatting depends on the device and the locale.
The Flash Lite 2.0 implementation of the method returns a string or a number, getCode() depending on what the platform passed in. The only valid key codes are the standard key codes accepted by this class and the “special” key codes listed as properties of the ExtendedKey class.
Event summary The following table lists the events that are either partially or not supported by the Mouse class when using ActionScript for Flash Lite 2.0. Event Description Support Notified when the mouse is pressed. Partially onMouseDown Limitations: Supported if supported System.capabilities.hasMouse are set to...
Page 17
Method summary The following table lists the methods that are either partially or not supported by the MovieClip class when using ActionScript for Flash Lite 2.0. Method Description Support Captures and plays local audio from the devices Not supported attachAudio() microphone hardware.
Page 18
Property summary The following table lists the properties that are either partially or not supported by the MovieClip class when using ActionScript for Flash Lite 2.0. Property Description Support Returns the absolute path in slash-syntax notation Partially _droptarget of the movie clip instance on which this movie clip supported was dropped.
Page 19
Property Description Support Returns the x coordinate of the mouse position. Partially _xmouse Limitations: Supported if supported System.capabilities.hasMouse=true System.capabilities.hasStylus=true Returns the y coordinate of the mouse position. Partially _ymouse Limitations: Supported if supported System.capabilities.hasMouse are set to System.capabilities.hasStylus true Event summary The following table lists the event handlers that are partially supported by the MovieClip class when using ActionScript for Flash Lite 2.0.
Event Handler Description Support Invoked every time the mouse moves. Partially onMouseMove Limitations: Supported if supported is set to System.capabilities.hasMouse true Invoked every time the left mouse button is Partially onMouseUp pressed. supported Limitations: Supported if System.capabilities.hasMouse are set to System.capabilities.hasStylus true Invoked when the mouse button is pressed over a...
Method summary The following table lists the methods that are partially supported by the SharedObject class when using ActionScript for Flash Lite 2.0. Method Description Support Immediately writes a locally persistent shared Partially flush() object to a local file. supported Limitations: The write operation is asynchronous and the result is not immediately available.
Page 22
Method summary The following table lists the methods that are not supported by the System class when using ActionScript for Flash Lite 2.0. Method Description Support Replaces the contents of the Clipboard with a Not supported setClipboard() specified text string. Shows the specified Flash Player Settings panel.
Description Support A string that indicates the manufacturer of Flash Not supported manufacturer Player, in the format "Macromedia OSName" (OSName could be "Windows", "Macintosh", "Linux", or "Other OS Name"). Indicates the pixel aspect ratio of the screen. Not supported pixelAspectRatio...
Page 24
Flash Lite property extensions The following table lists properties that are extensions to the System.capabilites class for use with ActionScript for Flash Lite 2.0. Property Description A read-only Boolean value that is if the player can process hasCompoundSound true compound sound data; otherwise.
Page 25
Property Description A read-only Boolean value that is if the player can send mouse- hasMouse true related events and if the platform does not support a mouse. false Allows user to set soft-key values and handle events from those soft hasMappableSoftKeys keys.
Sound class ActionScript for Flash Lite 2.0 supports device sound through the Sound class and through System.capabilities values. The Sound class is fully supported for native sounds supported in Flash Player 7, but it is only partially supported for device sounds. Flash Lite 2.0 adds support that lets you synchronize device sound playback with rendering animation.
Page 27
Method Description Support Determines how the sound is played in the left and Partially setPan() right channels (speakers). For mono sounds, pan supported determines which speaker (left or right) the sound plays through. Limitations: Supported for use with native Flash sound;...
Flash Lite method extensions The following table lists new methods in the Sound class that are specific to ActionScript for Flash Lite 2.0. Method Description Returns the value of the previous call. This method is not getPan() setPan() supported for device sound. Returns the value of the previous call.
Property Description Returns the value of the previous call. This method is getTransform() setTransform() not supported for device sound. Loads sound data of any format into Flash Player. This method is loadSound() different from the Flash Player 7 version because sound data loaded using this method is always treated as event sound, so the second parameter of this method is always ignored.
TextFormat class The TextFormat class represents character formatting information. Use the TextFormat class to create specific text formatting for text fields. You can apply text formatting to static and dynamic text fields. Some properties of the TextFormat class are not available for embedded and device fonts.
Page 31
Property summary The following table lists the properties that are partially supported when using ActionScript 2.0 to create Flash content. Property Description Support A Boolean value that specifies whether the text is Partially bold boldface. supported Limitations: For use only with paragraph-level formatting;...
Video class Flash Lite 2.0 lets you work with device-specific video formats, and supports the following types of video playback: Video embedded in a SWF file ■ Video available as a separate file on the device ■ Video streamed over the network (in real time) ■...
Page 33
Property summary The following table lists the properties of the Video class that are not supported when using ActionScript for Flash Lite 2.0. Property Description Support Indicates the type of deblocking filter applied to Not supported deblocking decoded video as part of postprocessing. Two deblocking filters are available: one in the Sorenson codec and one in the On2 VP6 codec.
Page 34
Unsupported and Partially Supported Classes...