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.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
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());
MovieClip.moveTo()
MovieClip.lineStyle()
. Shapes and lines that are manually
MovieClip.clear()
565
Need help?
Do you have a question about the FLEX-FLEX ACTIONSCRIPT LANGUAGE and is the answer not in the manual?