See also
addListener (MovieClipLoader.addListener method)
(MovieClipLoader.loadClip method)
,
event listener)
onLoadError (MovieClipLoader.onLoadError event listener)
onLoadInit (MovieClipLoader.onLoadInit event listener)
onLoadError (MovieClipLoader.onLoadError event
listener)
onLoadError = function(target_mc:MovieClip, errorCode:String,
[httpStatus:Number]) {}
Invoked when a file loaded with
listener can be invoked for various reasons; for example, if the server is down, the file is not
found, or a security violation occurs.
Call this listener on a listener object that you add by using
MovieClipLoader.addListener()
The value of
target_mc
parameter is useful if you are loading multiple files with the same set of listeners.
For the
parameter, the string
errorCode
MovieClipLoader.onLoadStart
called; for example, if a server is down or the file is not found. The string
"LoadNeverCompleted"
MovieClipLoader.onLoadComplete
interrupted because of server overload, server crash, and so on.
In Flash Player 8, this listener can return an HTTP status code in the
If Flash Player cannot get a status code from the server, or if Flash Player 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 run in the following browsers, which
cannot pass HTTP status codes from the server to Flash Player: Netscape, Mozilla, Safari,
Opera, and Internet Explorer for the Macintosh. A value of 0 can also be generated if the
player did not try to make the URL request to perform the load operation. This can happen
because the request violates security sandbox rules for the SWF file.
Availability: ActionScript 1.0; Flash Player 7
954
ActionScript classes
,
onLoadStart (MovieClipLoader.onLoadStart
MovieClipLoader.loadClip()
.
identifies the movie clip for which this call is being made. This
"URLNotFound"
or
MovieClipLoader.onLoadComplete
is returned if
MovieClipLoader.onLoadStart
was not called; for example, if the download was
,
loadClip
has failed to load. This
is returned if neither the
listener has been
was called but
httpStatus
,
parameter.
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?