MovieClipLoader
535
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)
,
loadClip
(MovieClipLoader.loadClip method)
onLoadComplete
(MovieClipLoader.onLoadComplete event listener)
onLoadComplete = function(listenerObject, [target_mc]) {}
Invoked when a file loaded with
MovieClipLoader.loadClip()
is completely downloaded.
The value for
target_mc
identifies the movie clip for which this call is being made. This is
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.
Summary of Contents for FLASHLITE2 ACTIONSCRIPT-LANGUAGE
Page 1: ...Flash Lite 2 x ActionScript Language Reference...
Page 22: ...22 Contents...
Page 244: ...244 ActionScript language elements...
Page 760: ...760 ActionScript classes...