Unloadmovie() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

unloadMovie()

Availability
Flash Player 3.
Usage
unloadMovie(target:MovieClip) : Void
unloadMovie(target:String) : Void
Parameters
The target path of a movie clip.
target
Returns
None.
Description
Function; removes a movie clip that was loaded by means of
unload a movie clip that was loaded by means of
instead of
unloadMovie()
Example
The following example creates a new movie clip called
It is loaded using the MovieClipLoader class. When you click the image, the movie clip unloads
from the SWF file:
var pic_mcl:MovieClipLoader = new MovieClipLoader();
pic_mcl.loadClip("http://www.macromedia.com/devnet/mx/blueprint/articles/
performance/spotlight_speterson.jpg", this.createEmptyMovieClip("pic_mc",
this.getNextHighestDepth()));
var listenerObject:Object = new Object();
listenerObject.onLoadInit = function(target_mc) {
target_mc.onRelease = function() {
unloadMovie(pic_mc);
/* or you could use the following, which refers to the movie clip
referenced by 'target_mc'. */
//unloadMovie(this);
};
};
pic_mcl.addListener(listenerObject);
See also
MovieClip.loadMovie(),
992
Chapter 2: ActionScript Language Reference
ActionScript Language Reference
.
MovieClipLoader.unloadClip()
loadMovie()
, use
loadMovieNum()
and loads an image into that clip.
pic_mc
CHAPTER 2
from Flash Player. To
unloadMovieNum()

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

This manual is also suitable for:

Flash mx

Table of Contents