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.

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

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

GetNetworkConnectStatus None -1: Not supported.<br />

0: There is currently an active network<br />

connection.<br />

1: The device is attempting to connect to<br />

the network.<br />

2: There is currently no active network<br />

connection.<br />

3: The network connection is suspended.<br />

4: The network connection cannot be<br />

determined.<br />

Example<br />

The following example assigns the network connection status to the connectstatus variable,<br />

<strong>and</strong> then uses a switch statement to update a text field with the status of the connection:<br />

connectstatus = FSComm<strong>and</strong>2("GetNetworkConnectStatus");<br />

switch (connectstatus) {<br />

connectstatus = FSComm<strong>and</strong>2("GetNetworkConnectStatus");<br />

switch (connectstatus) {<br />

connectstatus = FSComm<strong>and</strong>2("GetNetworkConnectStatus");<br />

switch (connectstatus) {<br />

case -1 :<br />

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

break;<br />

case 0 :<br />

_root.myText += "connectstatus shows active connection" + "\n";<br />

break;<br />

case 1 :<br />

_root.myText += "connectstatus shows attempting connection" + "\n";<br />

break;<br />

case 2 :<br />

_root.myText += "connectstatus shows no connection" + "\n";<br />

break;<br />

case 3 :<br />

_root.myText += "connectstatus shows suspended connection" + "\n";<br />

break;<br />

case 4 :<br />

_root.myText += "connectstatus shows indeterminable state" + "\n";<br />

break;<br />

}<br />

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

GetNetworkGeneration<br />

216 ActionScript language elements

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

Saved successfully!

Ooh no, something went wrong!