Loadclip (Moviecliploader.loadclip Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

var progress:Object = mcLoader.getProgress(image);
trace("bytesLoaded: " + progress.bytesLoaded + " bytesTotal: " +
progress.bytesTotal);
if(progress.bytesLoaded == progress.bytesTotal) {
clearInterval(interval.id);
}
}
If your SWF file includes a version 2 component, use the version 2 component's
DepthManager class instead of the
used in this example.
See also

loadClip (MovieClipLoader.loadClip method)

(MovieClipLoader.onLoadProgress event listener)
loadClip (MovieClipLoader.loadClip method)
public loadClip(url:String, target:Object) : Boolean
Loads a SWF, JPEG, progressive JPEG, unanimated GIF, or PNG file into a movie clip in
Flash Player while the original movie is playing. If you load an animated GIF, only the first
frame is displayed. Using this method you can display several SWF files at once and switch
between SWF files without loading another HTML document.
Using the
loadClip()
number of advantages. The following handlers are implemented by the use of a listener object.
You activate the listener by registering it with the MovieClipLoader class by using
MovieClipLoader.addListener(listenerObject)
The
MovieClipLoader.onLoadStart
The
MovieClipLoader.onLoadError
The
MovieClipLoader.onLoadProgress
progresses.
The
MovieClipLoader.onLoadComplete
downloading, but before the loaded movie clip's methods and properties are available.
This handler is called before the
The
MovieClipLoader.onLoadInit
of the clip have executed, so you can begin manipulating the loaded clip. This handler is
called after the
onLoadComplete
handler.
MovieClip.getNextHighestDepth()
method instead of
loadMovie()
handler is invoked when loading begins.
handler is invoked if the clip cannot be loaded.
onLoadInit
handler is invoked after the actions in the first frame
handler. For most purposes, use the
,
onLoadProgress
or
MovieClip.loadMovie()
.
handler is invoked as the loading process
handler is invoked when a file completes
handler.
method, which is
has a
onLoadInit
MovieClipLoader
949

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?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents