User Guide

Global Functions 47
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.
The
fscommand2() function is similar to the fscommand() function, with the following
differences:
The fscommand2()function can take any number of arguments. By contrast,
fscommand() can take only one argument.
Flash Lite executes fscommand2() immediately (in other words, within the frame),
whereas
fscommand() is executed at the end of the frame being processed.
The fscommand2() function returns a value that can be used to report success, failure, or
the result of the command.
To u se 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.
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 escape global function
GetDateDay getDate() method of Date object
GetDateMonth getMonth() method of Date object
GetDateWeekday getDay() method of Date object
GetDateYear getYear() method of Date object
GetLanguage System.capabilities.language property
GetLocaleLongDate getLocaleLongDate() method of Date object
GetLocaleShortDate getLocaleShortDate() method of Date object
GetLocaleTime getLocaleTime() method of Date object
GetTimeHours getHours() method of Date object
GetTimeMinutes getMinutes() method of Date object