Packagecom.desuade.motion.bases
Classpublic class BasePrimitive
InheritanceBasePrimitive Inheritance Object
Subclasses PrimitivePhysics, PrimitiveTween

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

This is the base class to Primitive objects.



Public Properties
 PropertyDefined By
  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
Public Methods
 MethodDefined By
  
Creates a new BasePrimitive.
BasePrimitive
  
end(broadcast:Boolean = true):void
This ends the Primitive immediately.
BasePrimitive
  
init(... args):void
Inits a new BasePrimitive.
BasePrimitive
  
render(time:int):void
This renders the primitive.
BasePrimitive
Property Detail
endedproperty
public var ended:Boolean = false

Has the Primitive ended or not.

endFuncproperty 
public var endFunc:Function

The function to run on end.

idproperty 
public var id:int

This is the unique internal id of the item.

iscleanproperty 
public var isclean:Boolean = true

This is used by the pool to determine if/how the Primitive has been used before in memory.

propertyproperty 
public var property:String

The property on the target.

targetproperty 
public var target:Object

The target object.

updateFuncproperty 
public var updateFunc:Function

The function to run on update.

Constructor Detail
BasePrimitive()Constructor
public function BasePrimitive()

Creates a new BasePrimitive. This is a base class and should be extended, not used directly.

Method Detail
end()method
public function end(broadcast:Boolean = true):void

This ends the Primitive immediately.

Parameters

broadcast:Boolean (default = true) — If false, this will not fire the endFunc method.

init()method 
public function init(... args):void

Inits a new BasePrimitive.

Parameters

... args — The target object

render()method 
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.