Flash Lite 2.x and 3.0 ActionScript Language Reference

GetDevice fscommand2 Command

GetDevice

Sets a parameter that identifies the device on which Flash Lite is running. This identifier is typically the model name.

Command

Parameters

Value Returned

GetDevice

device String to receive the identifier of the device. It can be either the name of a variable or a string value that contains the name of a variable.

-1: Not supported.
0: Supported.

Example

The following example assigns the device identifier to the device variable:

 status = fscommand2("GetDevice", "device");

Some sample results and the devices they signify follow:

D506i A Mitsubishi 506i phone. DFOMA1 A Mitsubishi FOMA1 phone. F506i A Fujitsu 506i phone. FFOMA1 A Fujitsu FOMA1 phone. N506i An NEC 506i phone. NFOMA1 An NEC FOMA1 phone. Nokia3650 A Nokia 3650 phone. p506i A Panasonic 506i phone. PFOMA1 A Panasonic FOMA1 phone. SH506i A Sharp 506i phone. SHFOMA1 A Sharp FOMA1 phone. SO506i A Sony 506iphone.