Flash Lite 2.x ActionScript Language Reference |
|
|
|
| ActionScript language elements > Global Functions > fscommand2 function | |||
fscommand2(command:String, parameter1:String,...parameterN:String) : Void
Lets the SWF file communicate with the Flash Lite player or a host application on a mobile device.
To use fscommand2() to send a message to the Flash Lite player, you must use predefined commands and parameters. See the "fscommand2 Commands" section under "ActionScript language elements" for the values you can specify for the fscommand() function's commands and parameters. These values control SWF files that are playing in the Flash Lite player.
The fscommand2() function is similar to the fscommand() function, with the following differences:
fscommand2()function can take any number of arguments. By contrast, fscommand() can take only one argument.fscommand2() immediately (in other words, within the frame), whereas fscommand() is executed at the end of the frame being processed.fscommand2() function returns a value that can be used to report success, failure, or the result of the command.Note: None of the fscommand2() commands are available in Web players.
Deprecated fscommand2() commands
Some fscommand2() commands from Flash Lite 1.1 have been deprecated in Flash Lite 2.0. The following table shows the deprecated fscommand2() commands:
|
Command |
Deprecated By |
|---|---|
|
Escape |
|
|
GetDateDay |
|
|
GetDateMonth |
|
|
GetDateWeekday |
|
|
GetDateYear |
|
|
GetLanguage |
|
|
GetLocaleLongDate |
|
|
GetLocaleShortDate |
|
|
GetLocaleTime |
|
|
GetTimeHours |
|
|
GetTimeMinutes |
|
|
GetTimeSeconds |
|
|
GetTimeZoneOffset |
|
|
SetQuality |
|
|
Unescape |
|
command:String - A string passed to the host application for any use, or a command passed to the Flash Lite player.
parameters:String - A string passed to the host application for any use, or a value passed to the Flash Lite player.
|
|
|
|