MovieClip
935
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
box
when a user clicks the
box
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)
,
attachMovie
(MovieClip.attachMovie method)
,
loadMovie (MovieClip.loadMovie method)
,
unloadMovie function
,
unloadMovieNum function
Summary of Contents for FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Page 1: ...ActionScript 2 0 Language Reference ...
Page 1352: ...1352 ActionScript classes ...