Flash Lite 2.x and 3.0 ActionScript Language Reference

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.

Command

Parameters

Value Returned

GetPlatform

platform String to receive the identifier of the platform.

-1: Not supported.
0: Supported.

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