com.thelab.tween.Litr
Tweening Class for Flash Animations. Create cool effects por your MovieClips or Objects properties.
static TW_BY_TIME:Numberstatic TW_BY_ID:Numberstatic TW_BY_OBJECT:Numberstatic TW_BY_INDEX:Numberstatic _filterQualitystatic _running:Number [Read Only]static _motorOn:Number [Read Only]static _motorOff:Number [Read Only]static function init(max_tween:Number, motor_count:Number)Initialize the Litr Class with the configuration necessary to create it's internal structures. Balance the limit of Tweenings with the Number of Motors in order to achieve a good performance.
max_tween | Limit of simultaneous tweening that the internal structures will bare. |
motor_count | Number of Motor that will work simultaneously to execute each tweening. |
static function addEventListener(ev_name:String, callback:Function):BooleanRegister the callback passed as parameter into the callback list. It'll be called when the desired callback occurs.
ev_name | Name of the event. In ver. 1.0 the current callbacks are (start,update,complete). |
callback | Reference for the callback function. |
Boolean - Flag indicating if the register was made correctly.
static function callEvent(ev_name:String, tween_node:TweenNode):BooleanCall an event of the Litr, a TweenNode is passed in order to know wich tween invoked the event.
ev_name | Name of the event. |
tween_node | TweenNode that invoked the event. |
Boolean - Flag indicating if all callbacks were invoked correctly.
static function tween(target, command, param):ArrayCreates a tween and insert it in the execution list.
target | Object that will have it's properties modified. |
command | String or an Array of Strings with the tweening parameters and properties to be changed. |
param | Param passed to the ending callback invked when the tween ended. |
Array - List with all TweenNodes id that were created. Use them as parameter to find each created tween and kill,pause,unpause,... it.
static function kill(param, target:Number):BooleanRemove a TweenNode from the execution list according to some criteria.
param | TweenNode Selection parameter |
target | Search Criteria. The possible values are TW_BY_TIME,TW_BY_OBJECT,TW_BY_ID,TW_BY_INDEX. |
Boolean - Flag indicating if the Tween was successfully killed.
static function pause(param, target:Number):BooleanPause a Tweening from the execution list according to some criteria.
param | TweenNode Selection parameter |
target | Search Criteria. The possible values are TW_BY_TIME,TW_BY_OBJECT,TW_BY_ID,TW_BY_INDEX. |
Boolean - Flag indicating if the Tween was successfully paused.
static function unpause(param, target:Number):BooleanUnpause a Tweening from the execution list according to some criteria.
param | TweenNode Selection parameter |
target | Search Criteria. The possible values are TW_BY_TIME,TW_BY_OBJECT,TW_BY_ID,TW_BY_INDEX. |
Boolean - Flag indicating if the Tween was successfully unpaused.