| Package | graphics.drawing |
| Class | public class AntPen |
| Inheritance | AntPen Pen flash.utils.Proxy |
| Implements | Runnable, Startable, Stoppable |
| Property | Defined By | ||
|---|---|---|---|
![]() | align : uint
Determinates the align value of the pen. | Pen | |
| closePath : Boolean
Indicates if the pen close the path when it draw the shape. | AntPen | ||
![]() | fill : IFillStyle
Determinates the fill style object of the pen. | Pen | |
![]() | graphics : *
Specifies the Graphics object belonging to this Shape object, where vector drawing commands can occur. | Pen | |
![]() | line : ILineStyle
Determinates the line style object of the pen. | Pen | |
| points : Array
The representation of all points of the path to drawing. | AntPen | ||
| running : Boolean [read-only]
Indicates if the ant effect is in progress. | AntPen | ||
| speed : Number
Indicates the speed of the effect. | AntPen | ||
| steps : uint
The steps value of the pen. | AntPen | ||
![]() | useClear : Boolean = true
Indicates if the clear() method is invoked at the end of the draw method. | Pen | |
![]() | useEndFill : Boolean = true
Indicates if the endFill() method is invoked at the end of the draw method. | Pen | |
| Method | Defined By | ||
|---|---|---|---|
AntPen(graphics:* = null, colors:Array = null, pattern:Array = null, speed:Number = 32, steps:uint = 1, closePath:Boolean = true)
Creates a new AntPen instance. | AntPen | ||
![]() | BF(... arguments):void
Defines a shortcut reference to used the beginBitmapFill method. | Pen | |
![]() | C(... arguments):void
Defines a shortcut reference to used the curveTo method. | Pen | |
![]() | CL():void
Defines a shortcut reference to used the clear method. | Pen | |
draw(... args):void [override]
Draws the shape and scale it. | AntPen | ||
drawShape():void [override]
This method contains the basic drawing shape algorithm. | AntPen | ||
![]() | EF():void
Defines a shortcut reference to used the endFill method. | Pen | |
![]() | F(... arguments):void
Defines a shortcut reference to used the beginFill method. | Pen | |
![]() | GF(... arguments):void
Defines a shortcut reference to used the beginGradientFill method. | Pen | |
![]() | GS(... arguments):void
Defines a shortcut reference to used the lineGradientStyle method. | Pen | |
![]() | L(... arguments):void
Defines a shortcut reference to used the lineTo method. | Pen | |
![]() | M(... arguments):void
Defines a shortcut reference to used the moveTo method. | Pen | |
run(... arguments):void
Run the process. | AntPen | ||
![]() | S(... arguments):void
Defines a shortcut reference to used the lineStyle method. | Pen | |
setup(colors:Array = null, pattern:Array = null):void
Sets the pen with the specified colors and the specific pattern. | AntPen | ||
start():void
Start the process or the command. | AntPen | ||
stop():void
Stop the process or the command. | AntPen | ||
| closePath | property |
public var closePath:BooleanIndicates if the pen close the path when it draw the shape.
| points | property |
public var points:ArrayThe representation of all points of the path to drawing.
| running | property |
running:Boolean [read-only] Indicates if the ant effect is in progress.
public function get running():Boolean| speed | property |
speed:NumberIndicates the speed of the effect.
public function get speed():Number public function set speed(value:Number):void| steps | property |
steps:uintThe steps value of the pen.
public function get steps():uint public function set steps(value:uint):void| AntPen | () | Constructor |
public function AntPen(graphics:* = null, colors:Array = null, pattern:Array = null, speed:Number = 32, steps:uint = 1, closePath:Boolean = true)Creates a new AntPen instance.
Parametersgraphics:* (default = null) — The Graphics reference to control with this helper. You can passed-in a Shape or Sprite/MovieClip reference in argument.
| |
colors:Array (default = null) | |
pattern:Array (default = null) | |
speed:Number (default = 32) | |
steps:uint (default = 1) | |
closePath:Boolean (default = true) |
| draw | () | method |
override public function draw(... args):voidDraws the shape and scale it.
Parameters
... args |
| drawShape | () | method |
override public function drawShape():voidThis method contains the basic drawing shape algorithm.
| run | () | method |
public function run(... arguments):voidRun the process.
Parameters
... arguments |
| setup | () | method |
public function setup(colors:Array = null, pattern:Array = null):voidSets the pen with the specified colors and the specific pattern.
Parameters
colors:Array (default = null) | |
pattern:Array (default = null) |
| start | () | method |
public function start():voidStart the process or the command.
| stop | () | method |
public function stop():voidStop the process or the command.