Unloadclip (Moviecliploader.unloadclip Method) - MACROMEDIA FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE Reference

Actionscript 2.0 language reference
Table of Contents

Advertisement

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;
If your SWF file includes a version 2 component, use the version 2 component's
DepthManager class instead of the
used in this example.
See also
addListener (MovieClipLoader.addListener method)

unloadClip (MovieClipLoader.unloadClip method)

public unloadClip(target:Object) : Boolean
Removes a movie clip that was loaded by using
this command while a movie is loading,
Availability: ActionScript 1.0; Flash Player 7
Parameters
- The string or integer that is passed to the corresponding call to
target:Object
my_mcl.loadClip()
Returns
- A Boolean value. Returns
Boolean
otherwise
.
false
Example
The following example loads an image into a movie clip called
movie clip, the movie clip is removed and information is displayed in the Output panel.
this.createEmptyMovieClip("image_mc", this.getNextHighestDepth());
var mclListener:Object = new Object();
mclListener.onLoadInit = function(target_mc:MovieClip) {
target_mc._x = 100;
MovieClip.getNextHighestDepth()
MovieClipLoader.onLoadError
.
true
MovieClipLoader.loadClip()
if the movie clip was removed successfully;
image_mc
method, which is
. If you issue
is invoked.
. When you click the
MovieClipLoader
961

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?

This manual is also suitable for:

Flash 8

Table of Contents

Save PDF