236
ActionScript language elements
networkstatus = fscommand2("GetNetworkStatus");
switch(networkstatus) {
case -1:
_root.= "network status not supported" + "\n";
break;
case 0:
_root.= "no network registered" + "\n";
break;
case 1:
_root.= "on home network" + "\n";
break;
case 2:
_root.= "on extended home network" + "\n";
break;
case 3:
_root.= "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.
Summary of Contents for Flash Lite 2
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...