User Guide

MovieClip.clear() 565
moveTo(100, 310);
lineTo(100, 510);
lineTo(600, 510);
lineTo(600, 310);
lineTo(100, 310);
endFill();
}
See also
MovieClip.beginFill(), MovieClip.endFill(), MovieClip.lineStyle(),
MovieClip.lineTo(), MovieClip.moveTo()
MovieClip.clear()
Availability
Flash Player 6.
Usage
my_mc.clear() : Void
Parameters
None.
Returns
Nothing.
Description
Method; removes all the graphics created during runtime using the movie clip draw methods,
including line styles specified with
MovieClip.lineStyle(). Shapes and lines that are manually
drawn during authoring time (with the Flash drawing tools) are unaffected.
Example
The following example draws a box on the Stage. When the user clicks the box graphic, it removes
the graphic from the Stage.
this.createEmptyMovieClip("box_mc", this.getNextHighestDepth());