03.05.2013 Views

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

FLASH® LITE™ 2.x - Adobe Help and Support

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

switch(networkstatus) {<br />

case -1:<br />

_root.myText += "network status not supported" + "\n";<br />

break;<br />

case 0:<br />

_root.myText += "no network registered" + "\n";<br />

break;<br />

case 1:<br />

_root.myText += "on home network" + "\n";<br />

break;<br />

case 2:<br />

_root.myText += "on extended home network" + "\n";<br />

break;<br />

case 3:<br />

_root.myText += "roaming" + "\n";<br />

break;<br />

}<br />

GetPlatform fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetPlatform<br />

Sets a parameter that identifies the current platform, which broadly describes the class of<br />

device. For devices with open operating systems, this identifier is typically the name <strong>and</strong><br />

version of the operating system.<br />

Comm<strong>and</strong> Parameters Value Returned<br />

GetPlatform platform String to receive the identifier<br />

of the platform.<br />

Example<br />

The following example sets the platform parameter to the identifier for the current platform:<br />

status = fscomm<strong>and</strong>2("GetPlatform", "platform");<br />

The following examples show some sample results for platform:<br />

506i A 506i phone. FOMA1 A FOMA1 phone. Symbian6.1_s60.1 A Symbian 6.1, Series 60<br />

version 1 phone. Symbian7.0 A Symbian 7.0 phone<br />

GetPowerSource fscomm<strong>and</strong>2 Comm<strong>and</strong><br />

GetPowerSource<br />

Returns a value that indicates whether the power source is currently supplied from a battery or<br />

from an external power source.<br />

220 ActionScript language elements<br />

-1: Not supported.<br />

0: <strong>Support</strong>ed.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!