Unloadclip (Moviecliploader.unloadclip 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

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
call this method while a movie is loading,
Availability: ActionScript 1.0; Flash Lite 2.0
Parameters
- The string or integer passed to the corresponding call to
target:Object
my_mcl.loadClip()
Returns
-
Boolean
.
MovieClipLoader.loadClip()
MovieClipLoader.onLoadError
. If you
is invoked.
MovieClipLoader
543

Advertisement

Table of Contents
loading

Table of Contents