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.

case 2:<br />

_root.myText += "pending request, contacting network" + "\n";<br />

break;<br />

case 3:<br />

_root.myText += "pending request, resolving domain" + "\n";<br />

break;<br />

case 4:<br />

_root.myText += "failed, network error" + "\n";<br />

break;<br />

case 5:<br />

_root.myText += "failed, couldn't reach server" + "\n";<br />

break;<br />

case 6:<br />

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

break;<br />

case 7:<br />

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

break;<br />

case 8:<br />

_root.myText += "request has been fulfilled" + "\n";<br />

break;<br />

case 9:<br />

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

break;<br />

case 10:<br />

_root.myText += "no HTTP request has been made" + "\n";<br />

break;<br />

}<br />

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

GetNetworkStatus<br />

Returns a value indicating the network status of the phone (that is, whether there is a network<br />

registered <strong>and</strong> whether the phone is currently roaming).<br />

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

GetNetworkStatus None -1: The comm<strong>and</strong> is not supported.<br />

0: No network registered.<br />

1: On home network.<br />

2: On extended home network.<br />

3: Roaming (away from home network).<br />

Example<br />

The following example assigns the status of the network connection to the networkstatus<br />

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

networkstatus = fscomm<strong>and</strong>2("GetNetworkStatus");<br />

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

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

Saved successfully!

Ooh no, something went wrong!