Packagecom.ericfeminella.effects
Classpublic class Tween

Custom actionScript 3 Tween API which allows Tween effects to be applied to any Object on the display list

For more information visit http://www.ericfeminella.com/blog



Public Methods
 MethodDefined by
  
Tween(tweenTarget:DisplayObject, propertyToTween:String, tweenType:String, tweenStartPosition:int, tweenStopPosition:int, tweenDuration:int, callback:Function = null, callbackArgs:Array = null)
All properties of a Tween effect must be specified in the Tween constructor
Tween
  
stop(invokeCallback:Boolean):void
Stops a tween instance if it is currently running
Tween
Constructor detail
Tween()constructor
public function Tween(tweenTarget:DisplayObject, propertyToTween:String, tweenType:String, tweenStartPosition:int, tweenStopPosition:int, tweenDuration:int, callback:Function = null, callbackArgs:Array = null)

All properties of a Tween effect must be specified in the Tween constructor

Parameters
tweenTarget:DisplayObject — DisplayObject to Tween
 
propertyToTween:String — Property of the DisplayObject in which to apply the tween
 
tweenType:String — Type of tween effect to apply. As a best practice, only use a constant of TweenType
 
tweenStartPosition:int — Initial starting position that the tween will begin
 
tweenStopPosition:int — Final destination of the tween effect
 
tweenDuration:int — Duration in which the tween effect is to run
 
callback:Function (default = null) — An optional parameter which specifies a callback function to invoke once the tween effect is completed
 
callbackArgs:Array (default = null) — An optional array of arbitrary parameters to pass to the callback function

See also

Method detail
stop()method
public function stop(invokeCallback:Boolean):void

Stops a tween instance if it is currently running

Parameters
invokeCallback:Boolean — if the callback function should be invoked