Flash Player 5.
my_mc.unloadMovie(): Void
None.
Nothing.
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.
The following example unloads a movie clip instance called image_mc when a user clicks the unloadMC_btn instance.
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();
};
MovieClip.attachMovie(), MovieClip.loadMovie(), unloadMovie(), unloadMovieNum()
RSS feed | Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/mx2004/main_7_2/00001563.html
Comments
michaelbarsotti said on Jul 27, 2004 at 8:49 PM :