Packagegraphics.drawing
Classpublic dynamic class BezierPen
InheritanceBezierPen Inheritance Pen Inheritance flash.utils.Proxy

This pen draw a bezier line curve in a MovieClip reference.



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
  tolerance : uint = 5
The tolerance of the drawing shape process.
BezierPen
 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
  v1 : Vector2
The first vector element who defines the bezier shape.
BezierPen
  v2 : Vector2
The second vector element who defines the bezier shape.
BezierPen
  v3 : Vector2
The third vector element who defines the bezier shape.
BezierPen
  v4 : Vector2
The fourth vector element who defines the bezier shape.
BezierPen
Public Methods
 MethodDefined By
  
BezierPen(graphic:*)
Creates a new BezierPen instance.
BezierPen
 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] Draw the bezier shape.
BezierPen
  
drawPoints(points:Array):void
Draw the bezier representation defines by the array of point passed in argument.
BezierPen
  
drawShape():void
[override] This method contains the basic drawing shape algorithm.
BezierPen
 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(... arguments):void
Sets the pen properties.
BezierPen
Property Detail
toleranceproperty
public var tolerance:uint = 5

The tolerance of the drawing shape process.

v1property 
public var v1:Vector2

The first vector element who defines the bezier shape.

v2property 
public var v2:Vector2

The second vector element who defines the bezier shape.

v3property 
public var v3:Vector2

The third vector element who defines the bezier shape.

v4property 
public var v4:Vector2

The fourth vector element who defines the bezier shape.

Constructor Detail
BezierPen()Constructor
public function BezierPen(graphic:*)

Creates a new BezierPen instance.

Parameters
graphic:* — The Graphics reference to control with this helper. You can passed-in a Shape or Sprite/MovieClip reference in argument.
Method Detail
draw()method
override public function draw(... arguments):void

Draw the bezier shape.

Parameters

... arguments

drawPoints()method 
public function drawPoints(points:Array):void

Draw the bezier representation defines by the array of point passed in argument.

Parameters

points:Array

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

This method contains the basic drawing shape algorithm.

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

Sets the pen properties.

Parameters

... arguments