Packageflare.animate
Classpublic class Sequence
InheritanceSequence Inheritance Transition Inheritance flash.events.EventDispatcher
SubclassesFunctionSequence

Transition that runs multiple transitions one after the other in sequence. By default, the total duration of the sequence is the sum of the durations and delays of the sub-transitions. If the duration of the sequence is set explicitly, the duration and delay for sub-transitions will be uniformly scaled to fit within in the new time span.



Public Properties
 PropertyDefined by
  autoDuration : Boolean
If true, the duration of this sequence is automatically determined by the durations of each sub-transition.
Sequence
 InheritedDEFAULT_EASING : Function
[static] Default easing function: a cubic slow-in slow-out.
Transition
 Inheriteddelay : Number
The delay between a call to play and the actual start of the transition, in seconds.
Transition
  duration : Number
The duration (length) of this Transition, in seconds.
Sequence
 Inheritedeasing : Function
Easing function used to pace this Transition.
Transition
 Inheritedenabled : Boolean = true
Flag indicating if step events should be processed.
Transition
 Inheritedid : String
A unique name identifying this schedulable object.
Transition
 Inheritedprogress : Number
Fraction between 0 and 1 indicating the current progress of this transition.
Transition
 Inheritedreverse : Boolean
Indicates if this Transition is running in reverse.
Transition
 Inheritedrunning : Boolean
Indicates if this Transition is currently running.
Transition
 InheritedtotalDuration : Number
The total duration, including both delay and active duration.
Transition
Protected Properties
 PropertyDefined by
 Inherited_reverse : Boolean = false
Flag indicating this Transition is running in reverse.
Transition
 Inherited_running : Boolean = false
Flag indicating this Transition is currently running.
Transition
  _trans : Array
Array of sequential transitions
Sequence
Public Methods
 MethodDefined by
  
Sequence(... transitions)
Creates a new Sequence transition.
Sequence
  
add(t:Transition):void
Adds a new transition to the end of this sequence.
Sequence
 Inherited
cancelled():void
Informs this transition that it was cancelled by the scheduler.
Transition
  
dispose():void
Disposes of this transition, freeing up any resources held.
Sequence
 Inherited
evaluate(time:Number):Boolean
Evaluates the Transition, stepping the transition forward.
Transition
 Inherited
pause():void
Pauses the transition at its current position.
Transition
  
play(reverse:Boolean = false):void
Starts running the transition.
Sequence
  
remove(t:Transition):Boolean
Removes a sub-transition from this sequence.
Sequence
 Inherited
reset():void
Resets the transition, so that any cached starting values are cleared and reset the next time this transition is played.
Transition
  
step(ef:Number):void
Steps this sequence transition, ensuring that any sub-transitions between the previous and current progress fraction are properly invoked.
Sequence
 Inherited
stop():void
Stops the transition and completes it.
Transition
Protected Methods
 MethodDefined by
  
Computes the duration of this sequence transition.
Sequence
  
end():void
Ends this sequence transition, ending the last transition to be played in the sequence as necessary.
Sequence
  
setup():void
Sets up each sub-transition.
Sequence
  
start():void
Starts this sequence transition, starting the first sub-transition to be played.
Sequence
Events
 EventSummaryDefined by
 Inherited  Transition
 Inherited
end
 Transition
 Inherited  Transition
 Inherited  Transition
Protected Constants
 ConstantDefined by
 InheritedINIT : int = 1
[static] Constant indicating this Transition has been initialized.
Transition
 InheritedRUN : int = 2
[static] Constant indicating this Transition is currently running.
Transition
 InheritedSETUP : int = 0
[static] Constant indicating this Transition needs initialization.
Transition
Property detail
autoDurationproperty
autoDuration:Boolean  [read-write]

If true, the duration of this sequence is automatically determined by the durations of each sub-transition. This is the default behavior.

Implementation
    public function get autoDuration():Boolean
    public function set autoDuration(value:Boolean):void
durationproperty 
duration:Number  [read-write]

The duration (length) of this Transition, in seconds.

Implementation
    public function get duration():Number
    public function set duration(value:Number):void
_transproperty 
protected var _trans:Array

Array of sequential transitions

Constructor detail
Sequence()constructor
public function Sequence(... transitions)

Creates a new Sequence transition.

Parameters
... transitions — an ordered list of sub-transitions
Method detail
add()method
public function add(t:Transition):void

Adds a new transition to the end of this sequence.

Parameters
t:Transition — the transition to add
computeDuration()method 
protected function computeDuration():void

Computes the duration of this sequence transition.

dispose()method 
public override function dispose():void

Disposes of this transition, freeing up any resources held. This method is optional, but calling it when a transition is no longer needed can help improve overall performance.

end()method 
protected override function end():void

Ends this sequence transition, ending the last transition to be played in the sequence as necessary.

play()method 
public override function play(reverse:Boolean = false):void

Starts running the transition.

Parameters
reverse:Boolean (default = false) — if true, the transition is played in reverse, if false (the default), it is played normally.
remove()method 
public function remove(t:Transition):Boolean

Removes a sub-transition from this sequence.

Parameters
t:Transition — the transition to remove

Returns
Boolean — true if the transition was found and removed, false otherwise
setup()method 
protected override function setup():void

Sets up each sub-transition.

start()method 
protected override function start():void

Starts this sequence transition, starting the first sub-transition to be played.

step()method 
public override function step(ef:Number):void

Steps this sequence transition, ensuring that any sub-transitions between the previous and current progress fraction are properly invoked.

Parameters
ef:Number — the current progress fraction.