Package | com.ericfeminella.effects |
Class | public class Tween |
For more information visit http://www.ericfeminella.com/blog
Method | Defined 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 |
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
ParameterstweenTarget: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
stop | () | method |
public function stop(invokeCallback:Boolean):void
Stops a tween instance if it is currently running
ParametersinvokeCallback:Boolean — if the callback function should be invoked
|