Packagecom.desuade.motion.tweens
Classpublic class PrimitiveTween
InheritancePrimitiveTween Inheritance BasePrimitive Inheritance Object
Subclasses PrimitiveBezierTween, PrimitiveMultiTween

Language Version : ActionScript 3
Since : 01.05.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

This is the most basic tween with no management. Users should not create this directly, instead use BasicTween.



Public Properties
 PropertyDefined By
  duration : int
How long the tween will last in ms.
PrimitiveTween
  ease : Function
What easing equation to use to tween.
PrimitiveTween
 Inheritedended : Boolean = false
Has the Primitive ended or not.
BasePrimitive
 InheritedendFunc : Function
The function to run on end.
BasePrimitive
 Inheritedid : int
This is the unique internal id of the item.
BasePrimitive
 Inheritedisclean : Boolean = true
This is used by the pool to determine if/how the Primitive has been used before in memory.
BasePrimitive
 Inheritedproperty : String
The property on the target.
BasePrimitive
 Inheritedtarget : Object
The target object.
BasePrimitive
 InheritedupdateFunc : Function
The function to run on update.
BasePrimitive
  value : Number
The new (end) value the property will be tweened to.
PrimitiveTween
Public Methods
 MethodDefined By
  
This creates a new, raw PrimitiveTween.
PrimitiveTween
 Inherited
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
Property Detail
durationproperty
public var duration:int

How long the tween will last in ms.

easeproperty 
public var ease:Function

What easing equation to use to tween.

valueproperty 
public var value:Number

The new (end) value the property will be tweened to.

Constructor Detail
PrimitiveTween()Constructor
public function PrimitiveTween()

This creates a new, raw PrimitiveTween. Users should use the Basic tweens instead of creating this directly.

Method Detail
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.