unloadMovie (MovieClip.unloadMovie method)
public unloadMovie() : Void
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.
Availability: ActionScript 1.0; Flash Player 5
Example
The following example unloads a movie clip instance called
movie clip:
this.createEmptyMovieClip("box", 1);
with (box) {
lineStyle(1, 0xCCCCCC);
beginFill(0x4827CF);
moveTo(0, 0);
lineTo(80, 0);
lineTo(80, 60);
lineTo(0, 60);
lineTo(0, 0);
endFill();
}
box.onRelease = function() {
box.unloadMovie();
};
See also
removeMovieClip (MovieClip.removeMovieClip method)
(MovieClip.attachMovie method)
unloadMovie function
.
,
loadMovie (MovieClip.loadMovie method)
,
unloadMovieNum function
when a user clicks the
box
,
attachMovie
MovieClip
box
,
935
Need help?
Do you have a question about the FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE and is the answer not in the manual?