Macromedia flash mx professional 2004-macromedia flash lite 1.1 authoring guidelines Benutzerhandbuch

Seite von 86
34
Chapter 5:  New FSCommand and FSCommand2 commands
Launch()
This function starts another application on the mobile phone. The name of the application being 
launched and the parameters to it, separated by commas, are passed in as a single parameter.
Note: This feature is operating-system dependent.
The 
launch()
 function is supported only when Flash Lite 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).
Syntax
status = FSCommand( "Launch", "application-path,arg1,arg2,...,argn" )
Supported applications
This feature is not supported in all mobile phones. 
Quit()
The 
Quit()
 function causes Flash Player to stop playback and exit. It is executed immediately 
upon invocation. If this function is not supported, a value of -1 is returned.
The 
Quit()
 function is supported only when Flash Lite 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).
Syntax
status = FSCommand2( "Quit” )
Return value
A value of -1 if the function not supported.
Supported applications
This feature is not supported in all mobile phones. 
Platform integration commands
A standard set of commands has been created to get and set platform-specific information. These 
include information such as current time and date, network status, signal strength, battery level, 
and so on. The implementations of these commands all rely on either 
FSCommand
 or 
FSCommand2
 
commands.
Date and time
The commands in this section provide the mobile phone’s date and time information to Flash 
content on the mobile phone. 
GetDateDay()
The 
GetDateDay()
 function returns the day of the current date. It is a numeric value (without a 
leading zero). Valid days are 1–31.