Packagecom.desuade.motion.sequences
Classpublic dynamic class Sequence
InheritanceSequence Inheritance Object
Implements flash.events.IEventDispatcher
Subclasses ClassSequence

Language Version : ActionScript 3
Since : 29.04.2009
Runtime Versions : AIR 1.0, Flash Player 9.0.0

A Sequence is an Array that contains an ordered group of motion objects that get called right after another, in the order given.



Public Properties
 PropertyDefined By
  active : Boolean
[read-only] If the Seqeuence is currently running.
Sequence
  current : Object
[read-only] The current motion object that's running.
Sequence
  manualAdvance : Boolean
If set to true, the sequence will not add a listener, and will not advance the sequence until advance() is called.
Sequence
  position : int
[read-only] The current position of the Seqeuence.
Sequence
Public Methods
 MethodDefined By
  
Sequence(... args)
Creates a new Sequence. A sequence is a subclass of Array, so you can manipulate items in a sequence just like an array. Any motion class that broadbasts an MotionEvent.ENDED can be sequenced. By passing an Array into the sequence, all tween objects inside will be grouped together and played at the same time.
Sequence
  
advance(i:Object = null):void
This advances the currently playing sequence. This happens automatically unless manualAdvance = true
Sequence
  
pushArray(array:Array):Sequence
Takes all the items in an Array and pushes them into the Sequence.
Sequence
  
start(position:int = 0):*
Starts the Seqeuence from the specified position, or the beginning if no position is specified.
Sequence
  
stop():void
Stops the Sequence.
Sequence
Property Detail
activeproperty
active:Boolean  [read-only]

If the Seqeuence is currently running.


Implementation
    public function get active():Boolean
currentproperty 
current:Object  [read-only]

The current motion object that's running.


Implementation
    public function get current():Object
manualAdvanceproperty 
manualAdvance:Boolean

If set to true, the sequence will not add a listener, and will not advance the sequence until advance() is called.


Implementation
    public function get manualAdvance():Boolean
    public function set manualAdvance(value:Boolean):void
positionproperty 
position:int  [read-only]

The current position of the Seqeuence.


Implementation
    public function get position():int
Constructor Detail
Sequence()Constructor
public function Sequence(... args)

Creates a new Sequence.

A sequence is a subclass of Array, so you can manipulate items in a sequence just like an array.

Any motion class that broadbasts an MotionEvent.ENDED can be sequenced.

By passing an Array into the sequence, all tween objects inside will be grouped together and played at the same time. The sequence will only advance once the tween with the longest duration is finished.

Sequences can also be nested, and another sequence is a valid object to push into a sequence. Sequences can NOT be nested inside Arrays.

Parameters
... args — All the items passed into the constructor will be pushed into the sequence like an array.
Method Detail
advance()method
public function advance(i:Object = null):void

This advances the currently playing sequence.

This happens automatically unless manualAdvance = true

Parameters

i:Object (default = null)

pushArray()method 
public function pushArray(array:Array):Sequence

Takes all the items in an Array and pushes them into the Sequence.

Parameters

array:Array — An Array with Sequenceable Objects.

Returns
Sequence — Returns the Sequence (for chaining)
start()method 
public function start(position:int = 0):*

Starts the Seqeuence from the specified position, or the beginning if no position is specified.

Parameters

position:int (default = 0) — Which object to start from in the Sequence (Array), starting from 0.

Returns
* — The sequence (for chaining)
stop()method 
public function stop():void

Stops the Sequence.