Packagecom.desuade.motion.bases
Classpublic class BaseTicker
InheritanceBaseTicker Inheritance Object

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

Handles primitive update cycles for render()



Public Properties
 PropertyDefined By
  classPool : MultiPool
[static] This is the MultiPool that stores all the object pools for the Primitive classes.
BaseTicker
  inited : Boolean
[static] [read-only] True if the ticker has been initialized.
BaseTicker
  physicsRate : Number = 30
[static] The default rate for physics as default interval for BasicPhysics.startAtTime(). It is recomended to set this to your SWF's global stage.frameRate for more accurate rendering.
BaseTicker
Public Methods
 MethodDefined By
  
addItem(class:Class):*
[static] Adds an item to the ticker.
BaseTicker
  
aquireID():int
[static] Gets a new id for a primitive item.
BaseTicker
  
getItem(id:int):*
[static] Returns the item based on the id.
BaseTicker
  
removeItem(id:int):void
[static] Removes the item for the ticker.
BaseTicker
  
start():void
[static] Initializes the Ticker.
BaseTicker
  
stop():void
[static] De-initializes the Ticker.
BaseTicker
Property Detail
classPoolproperty
public static var classPool:MultiPool

This is the MultiPool that stores all the object pools for the Primitive classes.

initedproperty 
inited:Boolean  [read-only]

True if the ticker has been initialized.


Implementation
    public static function get inited():Boolean
physicsRateproperty 
public static var physicsRate:Number = 30

The default rate for physics as default interval for BasicPhysics.startAtTime().

It is recomended to set this to your SWF's global stage.frameRate for more accurate rendering.

Method Detail
addItem()method
public static function addItem(class:Class):*

Adds an item to the ticker.

Parameters

class:Class — The class of the item to add (Primitives)

Returns
* — The item in the ticker
aquireID()method 
public static function aquireID():int

Gets a new id for a primitive item.

Returns
int
getItem()method 
public static function getItem(id:int):*

Returns the item based on the id.

Parameters

id:int — The id of the Motion Item

Returns
* — The requested item.
removeItem()method 
public static function removeItem(id:int):void

Removes the item for the ticker.

Parameters

id:int — The id of the item

start()method 
public static function start():void

Initializes the Ticker.

stop()method 
public static function stop():void

De-initializes the Ticker.