The fsCommand() and fsCommand2() global functions let the SWF file communicate with either Flash Player or the program that is hosting Flash Player, such as a web browser.
Flash Lite 2.x modifies the standard Macromedia Flash Player 7 commands, and adds commands that are specific to embedded devices. Flash Lite 2.x also supports the fsCommand2() function, which provides similar functionality to fsCommand(), with the exception that the command is executed immediately, not deferred until after the calling frame is processed.
For more information on the fsCommand2() function, see the Flash Lite 2.x and 3.0 ActionScript Language Reference.
The following table lists the commands that are not supported by fsCommand() when using ActionScript 2.0 to create Flash Lite content.
|
Command |
Description |
|---|---|
| quit |
Closes the projector. |
| fullscreen |
Specifying true sets Flash Player to full-screen mode. Specifying false returns the player to normal menu view. |
| allowscale |
Specifying false sets the player so the SWF file is always drawn at its original size and is never scaled. Specifying true forces the SWF file to scale to 100% of the screen. |
| showmenu |
Specifying true enables the full set of context menu items. Specifying false hides all the context menu items except About Flash Player and Settings. |
| exec |
Executes an application from within the projector. |
| trapallkeys |
Specifying true sends all key events, including accelerator keys, to the onClipEvent(keyDown/keyUp) handler in Flash Player. |