| Package | com.flashdynamix.motion |
| Class | public class TweensySequence |
See also
| Property | Defined by | ||
|---|---|---|---|
| canRepeat : Boolean [read-only]
Defines whether the TweensyTimeline repeats.
| TweensySequence | ||
| onComplete : Function
Executed when the TweensySequence animation is complete.
| TweensySequence | ||
| onCompleteParams : Array
Parameters applied to the onComplete Function.
| TweensySequence | ||
| paused : Boolean [read-only]
Whether the TweensySequence is paused.
| TweensySequence | ||
| refreshType : String | TweensySequence | ||
| repeatCount : int = 0
The count of the number of repeats which have occured.
| TweensySequence | ||
| repeats : int = -1
The number of repeats to use.
| TweensySequence | ||
| repeatType : String
Defines the repeat type for the animation.
| TweensySequence | ||
| snapToClosest : Boolean
Whether the timelines contained within the TweensyGroup class will snap tweened properties to the closest whole number.
| TweensySequence | ||
| useSmartRotate : Boolean
Whether the timelines contained within the TweensyGroup class will use smart rotation or not.
Using smart rotation will ensure that when tweening the 'rotation' property it will turn in the shortest rotation direction. This fixes what may otherwise appear as a visual glitch even though mathimatically it is correct. | TweensySequence | ||
| Method | Defined by | ||
|---|---|---|---|
|
| TweensySequence | ||
|
addAt(index:int, instance:Object, to:Object, duration:Number = 0.5, ease:Function = null, delayStart:Number = 0, delayEnd:Number = 0, update:Object = null, onComplete:Function = null, onCompleteParams:Array = null):void
Adds an animation to the specified index position in the animation sequence.
| TweensySequence | ||
|
dispose():void
Disposes the TweensySequence Class ready for garbage collection.
| TweensySequence | ||
|
pause():void
Pauses playback of the TweensySequence.
| TweensySequence | ||
|
push(instance:Object, to:Object, duration:Number = 0.5, ease:Function = null, delayStart:Number = 0, delayEnd:Number = 0, update:Object = null, onComplete:Function = null, onCompleteParams:Array = null):void
Adds an animation after the last animation in the sequence.
| TweensySequence | ||
|
removeAt(index:int):void
Removes an animation from the sequence at the specified position.
| TweensySequence | ||
|
replay():void
Plays a timeline animation at its start position.
| TweensySequence | ||
|
resume():void
Resumes playback of the TweensySequence.
| TweensySequence | ||
|
start():void
Starts playing the TweensySequence.
| TweensySequence | ||
|
stop():void
Stops playing the TweensySequence.
| TweensySequence | ||
|
unshift(instance:Object, to:Object, duration:Number = 0.5, ease:Function = null, delayStart:Number = 0, delayEnd:Number = 0, update:Object = null, onComplete:Function = null, onCompleteParams:Array = null):void
Adds an animation before the first animation in the sequence.
| TweensySequence | ||
|
yoyo():void
| TweensySequence | ||
| canRepeat | property |
canRepeat:Boolean [read-only]Defines whether the TweensyTimeline repeats.
Implementation public function get canRepeat():Boolean
See also
| onComplete | property |
public var onComplete:FunctionExecuted when the TweensySequence animation is complete.
See also
| onCompleteParams | property |
public var onCompleteParams:ArrayParameters applied to the onComplete Function.
See also
| paused | property |
paused:Boolean [read-only]Whether the TweensySequence is paused.
Implementation public function get paused():Boolean
| refreshType | property |
refreshType:String [read-write]Implementation
public function get refreshType():String
public function set refreshType(value:String):void
| repeatCount | property |
public var repeatCount:int = 0The count of the number of repeats which have occured.
See also
| repeats | property |
public var repeats:int = -1The number of repeats to use. If -1 is used then the animation will repeat indefinitely.
See also
| repeatType | property |
public var repeatType:String
Defines the repeat type for the animation. By default this is TweensyTimeline.NONE
Options include :
See also
| snapToClosest | property |
snapToClosest:Boolean [read-write]Whether the timelines contained within the TweensyGroup class will snap tweened properties to the closest whole number.
Implementation public function get snapToClosest():Boolean
public function set snapToClosest(value:Boolean):void
| useSmartRotate | property |
useSmartRotate:Boolean [read-write]
Whether the timelines contained within the TweensyGroup class will use smart rotation or not.
Using smart rotation will ensure that when tweening the 'rotation' property it will turn in the shortest rotation direction.
This fixes what may otherwise appear as a visual glitch even though mathimatically it is correct.
public function get useSmartRotate():Boolean
public function set useSmartRotate(value:Boolean):void
| TweensySequence | () | constructor |
public function TweensySequence()
| addAt | () | method |
public function addAt(index:int, instance:Object, to:Object, duration:Number = 0.5, ease:Function = null, delayStart:Number = 0, delayEnd:Number = 0, update:Object = null, onComplete:Function = null, onCompleteParams:Array = null):voidAdds an animation to the specified index position in the animation sequence.
Parametersindex:int — The index to insert this animation into the sequence
|
|
instance:Object — The instance Object to be tweened or multiple instances if using the type Array e.g. [item1, item2]
|
|
to:Object — An Object containing the properties you would like to tween to e.g. {x:50, y:25}
or this can be relative e.g. {x:'50', y:'-25'} or can be a random position e.g. {x:'-50, 50', y:'-25, 25'}
|
|
duration:Number (default = 0.5) — The time in secs you would like the tween to run.
|
|
ease:Function (default = null) — The ease equation you would like to use e.g. Quintic.easeOut.
|
|
delayStart:Number (default = 0) — The delay you would like to use at the beginning of the tween and every subsequent repeat of a tween.
|
|
delayEnd:Number (default = 0) — This param is used when tweening a property in an Object which needs to be applied onto another Object each time
the tween occurs.For example to(new DropShadowFilter(), {alpha:0}, myDisplayItem); Will apply the tweening DropShadowFilter onto the DisplayObject 'myDisplayItem'. |
|
update:Object (default = null) — The onComplete event handler you would like to fire once the tween is complete.
|
|
onComplete:Function (default = null) — The params applied to the onComplete handler.
|
|
onCompleteParams:Array (default = null) |
See also
| dispose | () | method |
public function dispose():voidDisposes the TweensySequence Class ready for garbage collection.
| pause | () | method |
public function pause():voidPauses playback of the TweensySequence.
| push | () | method |
public function push(instance:Object, to:Object, duration:Number = 0.5, ease:Function = null, delayStart:Number = 0, delayEnd:Number = 0, update:Object = null, onComplete:Function = null, onCompleteParams:Array = null):voidAdds an animation after the last animation in the sequence.
Parametersinstance:Object — The instance Object to be tweened or multiple instances if using the type Array e.g. [item1, item2]
|
|
to:Object — An Object containing the properties you would like to tween to e.g. {x:50, y:25}
or this can be relative e.g. {x:'50', y:'-25'} or can be a random position e.g. {x:'-50, 50', y:'-25, 25'}
|
|
duration:Number (default = 0.5) — The time in secs you would like the tween to run.
|
|
ease:Function (default = null) — The ease equation you would like to use e.g. Quintic.easeOut.
|
|
delayStart:Number (default = 0) — The delay you would like to use at the beginning of the tween and every subsequent repeat of a tween.
|
|
delayEnd:Number (default = 0) — This param is used when tweening a property in an Object which needs to be applied onto another Object each time
the tween occurs.For example to(new DropShadowFilter(), {alpha:0}, myDisplayItem); Will apply the tweening DropShadowFilter onto the DisplayObject 'myDisplayItem'. |
|
update:Object (default = null) — The onComplete event handler you would like to fire once the tween is complete.
|
|
onComplete:Function (default = null) — The params applied to the onComplete handler.
|
|
onCompleteParams:Array (default = null) |
See also
| removeAt | () | method |
public function removeAt(index:int):voidRemoves an animation from the sequence at the specified position.
Parametersindex:int |
| replay | () | method |
public function replay():voidPlays a timeline animation at its start position.
See also
| resume | () | method |
public function resume():voidResumes playback of the TweensySequence.
| start | () | method |
public function start():voidStarts playing the TweensySequence.
| stop | () | method |
public function stop():voidStops playing the TweensySequence.
| unshift | () | method |
public function unshift(instance:Object, to:Object, duration:Number = 0.5, ease:Function = null, delayStart:Number = 0, delayEnd:Number = 0, update:Object = null, onComplete:Function = null, onCompleteParams:Array = null):voidAdds an animation before the first animation in the sequence.
Parametersinstance:Object — The instance Object to be tweened or multiple instances if using the type Array e.g. [item1, item2]
|
|
to:Object — An Object containing the properties you would like to tween to e.g. {x:50, y:25}
or this can be relative e.g. {x:'50', y:'-25'} or can be a random position e.g. {x:'-50, 50', y:'-25, 25'}
|
|
duration:Number (default = 0.5) — The time in secs you would like the tween to run.
|
|
ease:Function (default = null) — The ease equation you would like to use e.g. Quintic.easeOut.
|
|
delayStart:Number (default = 0) — The delay you would like to use at the beginning of the tween and every subsequent repeat of a tween.
|
|
delayEnd:Number (default = 0) — This param is used when tweening a property in an Object which needs to be applied onto another Object each time
the tween occurs.For example to(new DropShadowFilter(), {alpha:0}, myDisplayItem); Will apply the tweening DropShadowFilter onto the DisplayObject 'myDisplayItem'. |
|
update:Object (default = null) — The onComplete event handler you would like to fire once the tween is complete.
|
|
onComplete:Function (default = null) — The params applied to the onComplete handler.
|
|
onCompleteParams:Array (default = null) |
See also
| yoyo | () | method |
public function yoyo():void