Packagecom.flashdynamix.motion.guides
Classpublic class Orbit2D

Allows for Objects to follow a 2D orbit path.
This path is defined by a radiusX/radiusX and centerX/centerY.



Public Properties
 PropertyDefined by
  autoRotate : Boolean = false
Whether the Object will directionally rotate.
Orbit2D
  centerX : Number
Orbit2D
  centerY : Number
Orbit2D
  degree : Number
Sets and returns the angle in degrees on the orbit path for your object.
Orbit2D
  item : Object
The Object you wish to be updated with x,y values of the orbit path.
Orbit2D
  radiusX : Number
Orbit2D
  radiusY : Number
Orbit2D
  rotation : Number
Sets and returns the rotation in radians on the orbit path for your object.
Orbit2D
Public Methods
 MethodDefined by
  
Orbit2D(item:Object, radiusX:Number, radiusY:Number, centerX:Number, centerY:Number, autoRotate:Boolean = false)
Orbit2D
Property detail
autoRotateproperty
public var autoRotate:Boolean = false

Whether the Object will directionally rotate.

centerXproperty 
centerX:Number  [read-write]

Implementation
    public function get centerX():Number
    public function set centerX(value:Number):void
centerYproperty 
centerY:Number  [read-write]

Implementation
    public function get centerY():Number
    public function set centerY(value:Number):void
degreeproperty 
degree:Number  [read-write]

Sets and returns the angle in degrees on the orbit path for your object.

Implementation
    public function get degree():Number
    public function set degree(value:Number):void
itemproperty 
public var item:Object

The Object you wish to be updated with x,y values of the orbit path.

radiusXproperty 
radiusX:Number  [read-write]

Implementation
    public function get radiusX():Number
    public function set radiusX(value:Number):void
radiusYproperty 
radiusY:Number  [read-write]

Implementation
    public function get radiusY():Number
    public function set radiusY(value:Number):void
rotationproperty 
rotation:Number  [read-write]

Sets and returns the rotation in radians on the orbit path for your object.

Implementation
    public function get rotation():Number
    public function set rotation(value:Number):void
Constructor detail
Orbit2D()constructor
public function Orbit2D(item:Object, radiusX:Number, radiusY:Number, centerX:Number, centerY:Number, autoRotate:Boolean = false)

Parameters
item:Object — The Object you wish to be updated with x,y values.
 
radiusX:Number — The x radius of the orbit path in pixels.
 
radiusY:Number — The y radius of the orbit path in pixels.
 
centerX:Number — The center x of the orbit path in pixels.
 
centerY:Number — The center y of the orbit path in pixels.
 
autoRotate:Boolean (default = false) — Whether the Object will directionally rotate.