fscommand function
fscommand(command:String, parameters:String) : Void
The
function lets a SWF file communicate with the Flash Lite player or the
fscommand()
environment for a mobile device (such as an operating system). The parameters define the
name of the application being started and the parameters to it, separated by commas.
Command
launch
Availability: ActionScript 1.0; Flash Lite 1.1
Parameters
- A string passed to the host application for any use, or a command passed
command:String
to the Flash Lite player.
parameters:String
the Flash Lite player.
Example
In the following example,
browser on Series 60 phones:
on(keyPress "9") {
status = fscommand("launch",
"z:\\system\\apps\\browser\\browser.app,http://wap.yahoo.com");
}
46
ActionScript language elements
Parameters
application-path, arg1,
arg2,..., argn
- A string passed to the host application for any use, or a value passed to
would open wap.yahoo.com on the services/Web
fscommand()
Purpose
This command launches another
application on a mobile device. The
name of the application its parameters
are passed in as a single argument.
Note: This feature is operating-system
dependent. Please use this command
carefully as it can call on the host
device to perform an unsupported
operation. Using it in this way could
cause the host device to crash.
This command is supported only when
the Flash Lite player is running in
stand-alone mode. It is not supported
when the player is running in the
context of another application (for
example, as a plug-in to a browser).
Need help?
Do you have a question about the FLASHLITE2 ACTIONSCRIPT-LANGUAGE and is the answer not in the manual?