Moviecliploader Constructor; (Moviecliploader.onloadcomplete Event Listener) - 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

Create an empty MovieClip and use the MovieClipLoader to load an image into it.
var container:MovieClip = createEmptyMovieClip("container",
getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("YourImage.jpg", container);
function onLoadInit(mc:MovieClip) {
trace("onLoadInit: " + mc);
}
See also
onLoadInit (MovieClipLoader.onLoadInit event listener)

MovieClipLoader constructor

public MovieClipLoader()
Creates a MovieClipLoader object that you can use to implement a number of listeners to
respond to events while a SWF, JPEG, GIF, or PNG file is downloading.
Availability: ActionScript 1.0; Flash Lite 2.0
Example
See
MovieClipLoader.loadClip()
See also
addListener (MovieClipLoader.addListener method)
(MovieClipLoader.loadClip method)
onLoadComplete

(MovieClipLoader.onLoadComplete event listener)

onLoadComplete = function(listenerObject, [target_mc]) {}
Invoked when a file loaded with
The value for
target_mc
useful if multiple files are being loaded with the same set of listeners.
This parameter is passed by Flash to your code, but you do not have to implement all of the
parameters in the listener function.
.
MovieClipLoader.loadClip()
identifies the movie clip for which this call is being made. This is
,
loadClip
is completely downloaded.
MovieClipLoader
535

Advertisement

Table of Contents
loading

Table of Contents