AbstractMultiTween
| Kind of class: | public class |
|---|---|
| Package: | com.bourre.transitions |
| Inherits from: | AbstractSyncCommand < AbstractCommand |
| Implements: | |
| Known subclasses: | |
| Author: | Cédric Néhémie |
| Classpath: | com.bourre.transitions.AbstractMultiTween |
| File last modified: | Monday, 24 November 2008, 11:36:57 |
Summary
Constructor
- AbstractMultiTween (targets:Object, setters:Array, endValues:Array, duration:Number, startValues:Array = null, easing:Function = null, getters:Array = null)
Class methods
- noEasing (t:Number, b:Number, c:Number, d:Number) : Number
Instance methods
- reset : void
- start : void
- stop : void
- setEasing (f:Function) : void
- Defines the easing function used by this {VISDOC_CODE_BLOCK_2} object.
- isMotionFinished : Boolean
- isReversedMotionFinished : Boolean
- _update : void
- isReversed : Boolean
- setReversed (b:Boolean) : void
- setPlayHeadPosition (n:Number) : void
- getPlayHeadPosition : Number
- getEasing : Function
- getDuration : Number
- execute (e:Event = null) : void
- getTarget : Object
- setStartValue (a:Array) : void
- getStartValue : Array
- setEndValue (a:Array) : void
- getEndValue : Array
- setDuration (n:Number) : void
- addListener (listener:TweenListener) : Boolean
- Adds the passed-in listener object as listener for
- removeListener (listener:TweenListener) : Boolean
- Removes the passed-in listener from listening all events
- addEventListener (type:String, listener:Object, rest) : Boolean
- Adds the passed-in listener as listener for the passed-in event type.
- removeEventListener (type:String, listener:Object) : Boolean
- Removes the passed-in listener for listening the passed-in event type.
Constructor
AbstractMultiTween
public function AbstractMultiTween (targets:Object, setters:Array, endValues:Array, duration:Number, startValues:Array = null, easing:Function = null, getters:Array = null)Class methods
noEasing
public static function noEasing (t:Number, b:Number, c:Number, d:Number) : NumberInstance methods
_update
public function _update () : voidaddEventListener
public function addEventListener (type:String, listener:Object, rest) : BooleanAdds the passed-in listener as listener for the passed-in event type.#Returns:- {VISDOC_CODE_BLOCK_8} if the object have been succesfully added as#
listener for the passed-in event type
Specified by:addListener
Adds the passed-in listener object as listener for#
all events dispatched by the tween. The object must
implements the {VISDOC_CODE_BLOCK_5} interface.execute
override public function execute (e:Event = null) : voidOverrides:- AbstractSyncCommand.execute
getDuration
public function getDuration () : NumbergetEasing
public function getEasing () : FunctiongetEndValue
public function getEndValue () : ArraygetPlayHeadPosition
public function getPlayHeadPosition () : NumbergetStartValue
public function getStartValue () : ArraygetTarget
public function getTarget () : ObjectisMotionFinished
public function isMotionFinished () : BooleanisReversed
public function isReversed () : BooleanisReversedMotionFinished
public function isReversedMotionFinished () : BooleanremoveEventListener
public function removeEventListener (type:String, listener:Object) : BooleanRemoves the passed-in listener for listening the passed-in event type.#Returns:- {VISDOC_CODE_BLOCK_9} if the object have been succesfully remove as#
listener for the passed-in event type
Specified by:removeListener
Removes the passed-in listener from listening all events#
dispatched by this tween.reset
public function reset () : voidsetDuration
public function setDuration (n:Number) : voidsetEasing
public function setEasing (f:Function) : voidDefines the easing function used by this {VISDOC_CODE_BLOCK_2} object.#Easing function can't be null, concret implementation must provide
a default function if no function is defined, or if the passed-in
function is {VISDOC_CODE_BLOCK_3}.Parameters:f:easing function for this tween, the function must implements#
the following signature :
function easingFunc( t : Number, b : Number, c : Number, d : Number ) : Number
Where :- {VISDOC_CODE_BLOCK_4} is the elapsed time since start in milliseconds
- {VISDOC_CODE_BLOCK_5} is the the start value
- {VISDOC_CODE_BLOCK_6} is the size of the value range such{VISDOC_CODE_BLOCK_7}
- {VISDOC_CODE_BLOCK_8} is the duration of the tween in milliseconds
- the returned value is the the interpolated value
Specified by:setEndValue
public function setEndValue (a:Array) : voidsetPlayHeadPosition
public function setPlayHeadPosition (n:Number) : voidsetReversed
public function setReversed (b:Boolean) : voidsetStartValue
public function setStartValue (a:Array) : voidstart
public function start () : voidstop
public function stop () : voidEvent handlers
onTick
public function onTick (e:Event = null) : voidMethod called by the {VISDOC_CODE_BLOCK_5} for each#
step of time according to its time slicing approach.The {VISDOC_CODE_BLOCK_6} method is very similar to the
old {VISDOC_CODE_BLOCK_7} method, but doesn't specifically
occurs when entering in a new frame of a frame-based animation.
The tick could be the result of a {VISDOC_CODE_BLOCK_8} call,
or a change in the timecode of a video.Parameters:e:event dispatched by the beacon object#Specified by:onUpdate
public function onUpdate (sV:Number, eV:Number) : Number - removeEventListener (type:String, listener:Object) : Boolean
- addEventListener (type:String, listener:Object, rest) : Boolean
- removeListener (listener:TweenListener) : Boolean