Packageflare.animate
Classpublic class Parallel
InheritanceParallel Inheritance Transition Inheritance flash.events.EventDispatcher
SubclassesTransitioner

Transition that runs multiple transitions simultaneously (in parallel). The duration of this parallel transition is computed as the maximum total duration (duration + delay) among the sub-transitions. If the duration is explicitly set, the sub-transition lengths will be uniformly scaled to fit within the new time span.



Public Properties
 PropertyDefined by
  autoDuration : Boolean
If true, the duration of this sequence is automatically determined by the longest sub-transition.
Parallel
 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.
Parallel
 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 parallel transitions
Parallel
Public Methods
 MethodDefined by
  
Parallel(... transitions)
Creates a new Parallel transition.
Parallel
  
add(t:Transition):void
Adds a new sub-transition to this parallel transition.
Parallel
 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.
Parallel
 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.
Parallel
  
remove(t:Transition):Boolean
Removes a sub-transition from this parallel transition.
Parallel
 Inherited
reset():void
Resets the transition, so that any cached starting values are cleared and reset the next time this transition is played.
Transition
  
stagger(delay:Number = 0.05, reverse:Boolean = false):Parallel
Staggers the start of each sub-transition by a given interval.
Parallel
  
step(ef:Number):void
Steps each sub-transition.
Parallel
 Inherited
stop():void
Stops the transition and completes it.
Transition
Protected Methods
 MethodDefined by
  
Computes the duration of this parallel transition.
Parallel
  
end():void
Ends each sub-transition.
Parallel
  
setup():void
Sets up each sub-transition.
Parallel
  
start():void
Starts each sub-transition.
Parallel
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 longest 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 parallel transitions

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

Creates a new Parallel transition.

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

Adds a new sub-transition to this parallel transition.

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

Computes the duration of this parallel 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 each sub-transition.

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 parallel transition.

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.

stagger()method 
public function stagger(delay:Number = 0.05, reverse:Boolean = false):Parallel

Staggers the start of each sub-transition by a given interval. This method will overwrite the delay settings for each sub-transition.

Parameters
delay:Number (default = 0.05) — the delay between the start of each sub-transition.
 
reverse:Boolean (default = false) — if true, staggering will be applied in the reverse order in which sub-transitions were added.

Returns
Parallel — returns this parallel transition
start()method 
protected override function start():void

Starts each sub-transition.

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

Steps each sub-transition.

Parameters
ef:Number — the current progress fraction.