| Package | com.flashdynamix.motion.guides |
| Class | public class Bezier2D |
| Property | Defined by | ||
|---|---|---|---|
| autoRotate : Boolean
Whether the Object will directionally rotate.
| Bezier2D | ||
| item : Object
The Object you wish to be updated with x,y and rotation values.
| Bezier2D | ||
| length : int [read-only]
| Bezier2D | ||
| movingPts : Boolean
Whether the pts in the BezierPath can be repositioned.
| Bezier2D | ||
| position : Number | Bezier2D | ||
| pts : Array
A list of Points defining nodes of the bezier path.
| Bezier2D | ||
| through : Boolean
Whether the pts in the bezier path will be used as control points or through points.
| Bezier2D | ||
| Method | Defined by | ||
|---|---|---|---|
|
Bezier2D(item:Object, through:Boolean = false, autoRotate:Boolean = false, movingPts:Boolean = false, ... pts)
| Bezier2D | ||
|
addAt(index:int, pt:Point):void
Adds a Point into the Bezier path at the specified index.
| Bezier2D | ||
|
index(index:int):Point
| Bezier2D | ||
|
push(pt:Point):void
Pushes a Point into the Bezier path.
| Bezier2D | ||
|
remove(pt:Point):void
Removes a Point from the Bezier path.
| Bezier2D | ||
|
removeAt(index:int, count:int = 1):void
Removes one or more Point(s) at the specified index and count from the Bezier path.
| Bezier2D | ||
| autoRotate | property |
public var autoRotate:BooleanWhether the Object will directionally rotate.
| item | property |
public var item:ObjectThe Object you wish to be updated with x,y and rotation values.
| length | property |
length:int [read-only]Implementation
public function get length():int
| movingPts | property |
public var movingPts:BooleanWhether the pts in the BezierPath can be repositioned.
| position | property |
position:Number [read-write]Implementation
public function get position():Number
public function set position(value:Number):void
| pts | property |
public var pts:ArrayA list of Points defining nodes of the bezier path.
| through | property |
public var through:BooleanWhether the pts in the bezier path will be used as control points or through points.
| Bezier2D | () | constructor |
public function Bezier2D(item:Object, through:Boolean = false, autoRotate:Boolean = false, movingPts:Boolean = false, ... pts)Parameters
item:Object — The Object you wish to be updated with x,y and rotation values.
|
|
through:Boolean (default = false) — Whether the pts in the bezier path will be used as control points or through points.
|
|
autoRotate:Boolean (default = false) — Whether the Object will directionally rotate.
|
|
movingPts:Boolean (default = false) — Whether the pts in the BezierPath can be repositioned.
|
|
... pts |
| addAt | () | method |
public function addAt(index:int, pt:Point):voidAdds a Point into the Bezier path at the specified index.
Parametersindex:int — The index for which to insert the Point.
|
|
pt:Point — The Point to insert at the index.
|
| index | () | method |
public function index(index:int):PointParameters
index:int — The position to return a Point from.
|
Point — Returns a Point at the specified index.
|
| push | () | method |
public function push(pt:Point):voidPushes a Point into the Bezier path.
Parameterspt:Point — The Point which will be added to the end of the bezier path.
|
| remove | () | method |
public function remove(pt:Point):voidRemoves a Point from the Bezier path.
Parameterspt:Point — The Point you would like to remove from the bezier path.
|
| removeAt | () | method |
public function removeAt(index:int, count:int = 1):voidRemoves one or more Point(s) at the specified index and count from the Bezier path.
Parametersindex:int — The index to start removing nodes from the Bezier path.
|
|
count:int (default = 1) — the Number of nodes to remove from the Bezier path. If this is 0 no nodes are removed.
|