Onhttpstatus (Loadvars.onhttpstatus Handler) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

return;
}
content_ta.text = src;
};
my_lv.load("content.txt", my_lv, "GET");
See also
onLoad (LoadVars.onLoad handler)
(LoadVars.load method)

onHTTPStatus (LoadVars.onHTTPStatus handler)

onHTTPStatus = function(httpStatus:Number) {}
Invoked when Flash Player receives an HTTP status code from the server. This handler lets
you capture and act on HTTP status codes.
The
handler is invoked before
onHTTPStatus
value of
if the load fails. After
undefined
triggered, whether or not you override
handler, you should write a function to catch the result of the
then use the result in your
indicates that the player did not try to make the URL request. This can happen because the
request violates security sandbox rules for the SWF file.
If Flash Player cannot get a status code from the server, or if it cannot communicate with the
server, the default value of 0 is passed to your ActionScript code. A value of 0 can be generated
in any player (for example, if a malformed URL is requested), and a value of 0 is always
generated by the Flash Player plug-in when it is run in the following browsers, which do not
pass HTTP status codes to the player: Netscape, Mozilla, Safari, Opera, and Internet Explorer
for the Macintosh.
Availability: ActionScript 1.0; Flash Player 8
Parameters
httpStatus:Number
404 indicates that the server has not found a match for the requested URI. HTTP status
codes can be found in sections 10.4 and 10.5 of the HTTP specification at ftp://ftp.isi.edu/
in-notes/rfc2616.txt.
,
onLoad (LoadVars.onLoad handler)
,
sendAndLoad (LoadVars.sendAndLoad method)
onHTTPStatus
onHTTPStatus
and
onData
onLoad
- The HTTP status code returned by the server. For example, a value of
, which triggers calls to
onData
is triggered,
. To best use the
onHTTPStatus
handlers. If
onHTTPStatus
,
load
with a
onLoad
is always
onData
onHTTPStatus
call; you can
is not invoked, this
LoadVars
703

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF