MovieClip.endFill( ) Method

ActionScript for Flash MX: The Definitive Guide, 2nd Edition
By Colin Moock
Chapter 18.  ActionScript Language Reference
MovieClip.endFill( ) Method Flash 6

terminates the fill begun with beginFill( ) or beginGradientFill( )
mc.endFill()

Description

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( ).

Example

// 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();

See Also

MovieClip.beginFill( ), MovieClip.beginGradientFill( ), MovieClip.clear( ), MovieClip.curveTo( ), MovieClip.lineStyle( ), MovieClip.lineTo( ), MovieClip.moveTo( )



    ActionScript for Flash MX. The Definitive Guide
    ActionScript for Flash MX: The Definitive Guide, Second Edition
    ISBN: 059600396X
    EAN: 2147483647
    Year: 2002
    Pages: 780
    Authors: Colin Moock

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net