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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Returns the generation of the current mobile wireless network, such as 2G (second generation<br />

of mobile wireless).<br />

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

GetNetworkGeneration None -1: Not supported<br />

0: Unknown generation of mobile<br />

wireless network<br />

1: 2G<br />

2: 2.5G<br />

3: 3G<br />

Example<br />

The following example shows syntax for returning the generation of the network:<br />

status = fscomm<strong>and</strong>2("GetNetworkGeneration");<br />

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

GetNetworkName<br />

Sets a parameter to the name of the current network.<br />

Note: This comm<strong>and</strong> is not supported for BREW devices.<br />

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

GetNetworkName networkName String representing the<br />

network name. It can be either the<br />

name of a variable or a string value<br />

that contains the name of a variable.<br />

If the network is registered <strong>and</strong> its<br />

name can be determined,<br />

networkname is set to the network<br />

name; otherwise, it is set to the<br />

empty string.<br />

Example<br />

The following example assigns the name of the current network to the myNetName parameter<br />

<strong>and</strong> a status value to the netNameStatus variable:<br />

netNameStatus = fscomm<strong>and</strong>2("GetNetworkName", myNetName);<br />

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

GetNetworkRequestStatus<br />

-1: Not supported.<br />

0: No network is registered.<br />

1: Network is registered, but<br />

network name is not known.<br />

2: Network is registered, <strong>and</strong><br />

network name is known.<br />

fscomm<strong>and</strong>2 Comm<strong>and</strong>s 217

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

Saved successfully!

Ooh no, something went wrong!