MACROMEDIA FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE Reference page 143

Flash lite 1.x actionscript language reference
Hide thumbs Also See for FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE:
Table of Contents

Advertisement

Example
The following example assigns the status of the most recent HTTP request to the
variable, and then uses a
requesttatus
the status:
requeststatus = fscommand2("GetNetworkRequestStatus");
switch (requeststatus) {
case -1:
/:myText += "requeststatus not supported" add newline;
break;
case 0:
/:myText += "connection to server has been made" add newline;
break;
case 1:
/:myText += "connection is being established" add newline;
break;
case 2:
/:myText += "pending request, contacting network" add newline;
break;
case 3:
/:myText += "pending request, resolving domain" add newline;
break;
case 4:
/:myText += "failed, network error" add newline;
break;
case 5:
/:myText += "failed, couldn't reach server" add newline;
break;
case 6:
/:myText += "HTTP error" add newline;
break;
case 7:
/:myText += "DNS failure" add newline;
break;
case 8:
/:myText += "request has been fulfilled" add newline;
break;
case 9:
/:myText += "request timedout" add newline;
break;
case 10:
/:myText += "no HTTP request has been made" add newline;
break;
}
statement to update a text field with
switch
fscommand2()
143

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-FLASH LITE 1.X ACTIONSCRIPT LANGUAGE and is the answer not in the manual?

Table of Contents