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

Seite von 86
Platform integration commands
45
sv
: Swedish.
tr
: Turkish.
xu
: The language cannot be determined.
zh-CN
: Simplified Chinese.
zh-TW
: Traditional Chinese.
Device and player identification
The commands in this section provide the mobile phone’s ID and platform information to Flash 
content on the mobile phone. 
GetDeviceID()
The 
GetDeviceID()
 function sets a parameter that represents the unique identifier of the mobile 
phone (for example, serial number).
This function is executed immediately upon invocation. If 
GetDeviceID()
 is not supported, a 
value of 
-1
 is returned.
Syntax
status = FSCommand2( "GetDeviceID” “id” )
Return value
A value of -1 if the function is not supported; 0 if it’s supported.
Supported applications
This feature is not supported in all mobile phones. 
GetPlatform()
The 
GetPlatform()
 function identifies the current platform. The platform broadly describes the 
class of the mobile phone. For mobile phones with open operating systems, this identifier is 
typically the name and version of the operating system.
The name of the platform is returned in a variable that is passed in by name, in the form of a 
string.
This function is executed immediately upon invocation. If 
GetPlatform()
 is not supported, a 
value of 
-1
 is returned.
Syntax
status = FSCommand2( "GetPlatform”, “platform” )
Return value
A value of 
-1
 if the function not supported; 
0
 if it’s supported.
Sample resultant values for 
platform
: