Package | com.desuade.motion.tweens |
Class | public class PrimitiveTween |
Inheritance | PrimitiveTween ![]() ![]() |
Subclasses | PrimitiveBezierTween, PrimitiveMultiTween |
Language Version : | ActionScript 3 |
Since : | 01.05.2009 |
Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
Property | Defined By | ||
---|---|---|---|
duration : int
How long the tween will last in ms. | PrimitiveTween | ||
ease : Function
What easing equation to use to tween. | PrimitiveTween | ||
![]() | ended : Boolean = false
Has the Primitive ended or not. | BasePrimitive | |
![]() | endFunc : Function
The function to run on end. | BasePrimitive | |
![]() | id : int
This is the unique internal id of the item. | BasePrimitive | |
![]() | isclean : Boolean = true
This is used by the pool to determine if/how the Primitive has been used before in memory. | BasePrimitive | |
![]() | property : String
The property on the target. | BasePrimitive | |
![]() | target : Object
The target object. | BasePrimitive | |
![]() | updateFunc : Function
The function to run on update. | BasePrimitive | |
value : Number
The new (end) value the property will be tweened to. | PrimitiveTween |
Method | Defined By | ||
---|---|---|---|
This creates a new, raw PrimitiveTween. | PrimitiveTween | ||
![]() | end(broadcast:Boolean = true):void
This ends the Primitive immediately. | BasePrimitive | |
init(... args):void [override]
This inits the PrimitiveTween. | PrimitiveTween | ||
render(time:int):void [override]
This renders the primitive. | PrimitiveTween |
duration | property |
public var duration:int
How long the tween will last in ms.
ease | property |
public var ease:Function
What easing equation to use to tween.
value | property |
public var value:Number
The new (end) value the property will be tweened to.
PrimitiveTween | () | Constructor |
public function PrimitiveTween()
This creates a new, raw PrimitiveTween. Users should use the Basic tweens instead of creating this directly.
init | () | method |
override public function init(... args):void
This inits the PrimitiveTween.
Parameters
... args — The target object to perform the tween on.
|
See also
render | () | method |
override public function render(time:int):void
This renders the primitive. This is the function that does all the "magic".
Parameters
time:int — The current getTimer() time.
|