MovieClip.endFill( ) Method | Flash 6 |
terminates the fill begun with beginFill( ) or beginGradientFill( ) |
The endFill( ) method terminates the filling of a shape that was begun with an earlier call to beginFill( ) or beginGradientFill( ), causing the shape to be drawn on-screen. If the current drawing pen position is not the same as when beginFill( ) or beginGradientFill( ) was called, Flash closes the shape with a straight line and applies the fill. However, creating open shapes can have unpredictable results and is not recommended.
For complete details on drawing shapes, see MovieClip.beginFill( ) and MovieClip.beginGradientFill( ).
// Draws a four-sided shape on the main timeline _root.moveTo(225, 200); _root.beginFill(0x00FF00, 50); _root.lineTo(100,100); _root.lineTo(0,100); _root.lineTo(0,300); _root.lineTo(225,200); _root.endFill();
MovieClip.beginFill( ), MovieClip.beginGradientFill( ), MovieClip.clear( ), MovieClip.curveTo( ), MovieClip.lineStyle( ), MovieClip.lineTo( ), MovieClip.moveTo( )