Movieclip.unloadmovie() - MACROMEDIA FLASH MX 2004-ACTIONSCRIPT LANGUAGE Reference

Actionscript language reference
Table of Contents

Advertisement

MovieClip.unloadMovie()

Availability
Flash Player 5.
Usage
my_mc.unloadMovie() : Void
Parameters
None.
Returns
Nothing.
Description
Method; removes the contents of a movie clip instance. The instance properties and clip
handlers remain.
To remove the instance, including its properties and clip handlers, use
MovieClip.removeMovieClip()
You can extend the methods and event handlers of the MovieClip class by creating a subclass. For
more information, see "Assigning a class to a movie clip symbol" in Using ActionScript in Flash.
Example
The following example unloads a movie clip instance called
instance.
unloadMC_btn
this.createEmptyMovieClip("image_mc", 1);
image_mc.loadMovie("http://www.macromedia.com/images/shared/product_boxes/
112x112/box_studio_112x112.jpg");
unloadMC_btn.onRelease = function() {
image_mc.unloadMovie();
};
See also
MovieClip.attachMovie(), MovieClip.loadMovie(), unloadMovie(),
unloadMovieNum()
.
when a user clicks the
image_mc
MovieClip.unloadMovie()
589

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?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents