Loadclip (Moviecliploader.loadclip Method) - MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE Reference

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

Advertisement

trace(">> checking progress now with : " + interval.id);
var progress:Object = mcLoader.getProgress(image);
trace("bytesLoaded: " + progress.bytesLoaded + " bytesTotal: " +
progress.bytesTotal);
if(progress.bytesLoaded == progress.bytesTotal) {
clearInterval(interval.id);
}
}
See also

loadClip (MovieClipLoader.loadClip method)

(MovieClipLoader.onLoadProgress event listener)
loadClip (MovieClipLoader.loadClip method)
public loadClip(url:String, target:Object) : Boolean
Loads a SWF or JPEG file into a movie clip in Flash Player while the original movie is
playing. Using this method lets you 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 using
register it with the MovieClipLoader class.
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 are executed, so you can begin manipulating the loaded clip. This handler is
called after the
onLoadComplete
handler.
A SWF file or image loaded into a movie clip inherits the position, rotation, and scale
properties of the movie clip. You can use the target path of the movie clip to target the loaded
movie.
method instead of
loadMovie()
MovieClipLoader.addListener(listenerObject)
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.
has a
to
onLoadInit
MovieClipLoader
533

Advertisement

Table of Contents
loading

Table of Contents