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.

Example<br />

The following example sets the maxvolume variable to the maximum volume level of the<br />

device:<br />

maxvolume = fscomm<strong>and</strong>2("GetMaxVolumeLevel");<br />

trace (maxvolume); // output: 80<br />

GetNetworkConnectionName fscomm<strong>and</strong>2<br />

Comm<strong>and</strong><br />

GetNetworkConnectionName<br />

Returns the name of the active or default network connection. For mobile devices, this<br />

connection is also known as an access point.<br />

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

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

GetNetworkConnectionName None -1: Not supported<br />

0: Success: returns the active network<br />

connection name<br />

1: Success: returns the default network<br />

connection name<br />

2: Unable to retrieve the connection name<br />

Example<br />

The following example returns the name of the active or default network connection in the<br />

argument myConnectionName:<br />

status = FSComm<strong>and</strong>2("GetNetworkConnectionName", "myConnectionName");<br />

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

GetNetworkConnectStatus<br />

Returns a value that indicates the current network connection status.<br />

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

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

Saved successfully!

Ooh no, something went wrong!