EasyManua.ls Logo

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE - Unloadclip (Moviecliploader.unloadclip Method)

MACROMEDIA FLASH 8-FLASH LITE 2.X ACTIONSCRIPT LANGUAGE
780 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MovieClipLoader 543
var image_mcl:MovieClipLoader = new MovieClipLoader();
//
start_button.clickHandler = function() {
trace("Starting...");
start_button.enabled = false;
stop_button.enabled = true;
//
image_mcl.addListener(mclListener);
image_mcl.loadClip("http://www.helpexamples.com/flash/images/
image1.jpg", image_mc);
};
stop_button.clickHandler = function() {
trace("Stopping...");
start_button.enabled = true;
stop_button.enabled = false;
//
image_mcl.removeListener(mclListener);
};
stop_button.enabled = false;
See also
addListener (MovieClipLoader.addListener method)
unloadClip (MovieClipLoader.unloadClip method)
public unloadClip(target:Object) : Boolean
Removes a movie clip that was loaded by means of MovieClipLoader.loadClip(). If you
call this method while a movie is loading,
MovieClipLoader.onLoadError is invoked.
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
target:Object - The string or integer passed to the corresponding call to
my_mcl.loadClip().
Returns
Boolean -

Table of Contents

Related product manuals