MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference page 145

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

GetPlatform
Availability
Flash Lite 1.1.
Description
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
"GetPlatform"
Example
The following code example assigns the platform identifier to the
and then updates a text field with the generic platform name.
These are some sample results for
A 506i phone.
506i
A FOMA1 phone.
FOMA1
Symbian6.1_s60.1
A Symbian 7.0 phone
Symbian7.0
statusplatform = fscommand2("GetPlatform", "platform");
switch(platform){
case "506i":
/:myText += "platform: 506i" add newline;
break;
case "FOMA1":
/:myText += "platform: FOMA1" add newline;
break;
case "Symbian6.1-Series60v1":
/:myText += "platform: Symbian6.1, Series 60 version 1 phone" add
newline;
break;
case "Symbian7.0":
/:myText += "platform: Symbian 7.0" add newline;
break;
}
Parameters
String to receive the
platform
identifier of the platform. It can be
either the name of a variable or a
string value that contains the name of
a variable.
myPlatform
A Symbian 6.1, Series 60 version 1 phone.
Value returned
-1: Not supported.
0: Supported.
statusplatform
and the classes of device they signify:
variable,
fscommand2()
145

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents