Packagegraphics.drawing
Classpublic dynamic class FreePolygonPen
InheritanceFreePolygonPen Inheritance Pen Inheritance flash.utils.Proxy

This pen is the tool to draw a free polygon vector shape. This class don't use the 'align' property.



Public Properties
 PropertyDefined By
 Inheritedalign : uint
Determinates the align value of the pen.
Pen
 Inheritedfill : IFillStyle
Determinates the fill style object of the pen.
Pen
 Inheritedgraphics : *
Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur.
Pen
 Inheritedline : ILineStyle
Determinates the line style object of the pen.
Pen
  points : Array
The list of all flash.geom.Point or graphics.geom.Vector2 objects to draw the specified polygon.
FreePolygonPen
 InheriteduseClear : Boolean = true
Indicates if the clear() method is invoked at the end of the draw method.
Pen
 InheriteduseEndFill : Boolean = true
Indicates if the endFill() method is invoked at the end of the draw method.
Pen
Public Methods
 MethodDefined By
  
FreePolygonPen(graphic:*, ... arguments)
The Pen class use composition to control a Graphics reference and draw custom free polygon vector graphic shapes.
FreePolygonPen
 Inherited
BF(... arguments):void
Defines a shortcut reference to used the beginBitmapFill method.
Pen
 Inherited
C(... arguments):void
Defines a shortcut reference to used the curveTo method.
Pen
 Inherited
CL():void
Defines a shortcut reference to used the clear method.
Pen
  
draw(... arguments):void
[override] Draws the shape.
FreePolygonPen
  
drawShape():void
[override] This method contains the basic drawing shape algorithm.
FreePolygonPen
 Inherited
EF():void
Defines a shortcut reference to used the endFill method.
Pen
 Inherited
F(... arguments):void
Defines a shortcut reference to used the beginFill method.
Pen
 Inherited
GF(... arguments):void
Defines a shortcut reference to used the beginGradientFill method.
Pen
 Inherited
GS(... arguments):void
Defines a shortcut reference to used the lineGradientStyle method.
Pen
 Inherited
L(... arguments):void
Defines a shortcut reference to used the lineTo method.
Pen
 Inherited
M(... arguments):void
Defines a shortcut reference to used the moveTo method.
Pen
 Inherited
S(... arguments):void
Defines a shortcut reference to used the lineStyle method.
Pen
  
setPen(... args):void
Sets the shape options to defined all values to draw the shape.
FreePolygonPen
Property Detail
pointsproperty
points:Array

The list of all flash.geom.Point or graphics.geom.Vector2 objects to draw the specified polygon.


Implementation
    public function get points():Array
    public function set points(value:Array):void
Constructor Detail
FreePolygonPen()Constructor
public function FreePolygonPen(graphic:*, ... arguments)

The Pen class use composition to control a Graphics reference and draw custom free polygon vector graphic shapes.

Parameters
graphic:* — The Graphics reference to control with this helper. You can passed-in a Shape or Sprite/MovieClip reference in argument.
 
... arguments — An array of flash.geom.Point or graphics.geom.Vector2 objects or an argument serie of point objects.
Method Detail
draw()method
override public function draw(... arguments):void

Draws the shape.

Parameters

... arguments — An array of flash.geom.Point or graphics.geom.Vector2 objects or an argument serie of point objects.

drawShape()method 
override public function drawShape():void

This method contains the basic drawing shape algorithm.

setPen()method 
public function setPen(... args):void

Sets the shape options to defined all values to draw the shape.

Parameters

... args — (optional) The x position of the pen.