Package | com.desuade.motion.bases |
Class | public class BaseTicker |
Inheritance | BaseTicker ![]() |
Language Version : | ActionScript 3 |
Since : | 29.07.2009 |
Runtime Versions : | AIR 1.0, Flash Player 9.0.0 |
Property | Defined 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 |
Method | Defined 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 |
classPool | property |
public static var classPool:MultiPool
This is the MultiPool that stores all the object pools for the Primitive classes.
inited | property |
inited:Boolean
[read-only] True if the ticker has been initialized.
public static function get inited():Boolean
physicsRate | property |
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.
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)
|
* — The item in the ticker
|
aquireID | () | method |
public static function aquireID():int
Gets a new id for a primitive item.
Returnsint |
getItem | () | method |
public static function getItem(id:int):*
Returns the item based on the id.
Parameters
id:int — The id of the Motion Item
|
* — 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.