User Guide
236 ActionScript language elements
networkstatus = fscommand2("GetNetworkStatus");
switch(networkstatus) {
case -1:
_root.myText += "network status not supported" + "\n";
break;
case 0:
_root.myText += "no network registered" + "\n";
break;
case 1:
_root.myText += "on home network" + "\n";
break;
case 2:
_root.myText += "on extended home network" + "\n";
break;
case 3:
_root.myText += "roaming" + "\n";
break;
}
GetPlatform fscommand2 Command
GetPlatform
Sets a parameter that identifies the current platform, which broadly describes the class of
device. For devices with open operating systems, this identifier is typically the name and
version of the operating system.
Availability: ActionScript 1.0; Flash Lite 1.1
Example
The following example sets the
platform parameter to the identifier for the current platform:
status = fscommand2("GetPlatform", "platform");
The following examples show some sample results for platform:
506i A 506i phone. FOMA1 A FOMA1 phone. Symbian6.1_s60.1 A Symbian 6.1, Series 60
version 1 phone.
Symbian7.0 A Symbian 7.0 phone
Command Parameters Value Returned
GetPlatform platform String
to receive the
identifier of the
platform.
-1: Not supported. 0: Supported.