46
ActionScript language elements
fscommand function
fscommand(
command:String
,
parameters:String
) :
Void
The
fscommand()
function lets a SWF file communicate with the Flash Lite player or the
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.
Availability:
ActionScript 1.0; Flash Lite 1.1
Parameters
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.
Example
In the following example,
fscommand()
would open wap.yahoo.com on the services/Web
browser on Series 60 phones:
on(keyPress "9") {
status = fscommand("launch",
"z:\\system\\apps\\browser\\browser.app,http://wap.yahoo.com");
}
Command
Parameters
Purpose
launch
application-path, arg1,
arg2,..., argn
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).
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...