| Package | com.desuade.motion.sequences |
| Class | public dynamic class Sequence |
| Inheritance | Sequence 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.
| Property | Defined 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 | ||
| Method | Defined 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 | ||
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 | ||
| active | property |
active:Boolean [read-only] If the Seqeuence is currently running.
public function get active():Boolean| current | property |
current:Object [read-only] The current motion object that's running.
public function get current():Object| manualAdvance | property |
manualAdvance:BooleanIf set to true, the sequence will not add a listener, and will not advance the sequence until advance() is called.
public function get manualAdvance():Boolean public function set manualAdvance(value:Boolean):void| position | property |
position:int [read-only] The current position of the Seqeuence.
public function get position():int| 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.
|
| 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):SequenceTakes all the items in an Array and pushes them into the Sequence.
Parameters
array:Array — An Array with Sequenceable Objects.
|
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.
|
* — The sequence (for chaining)
|
| stop | () | method |
public function stop():voidStops the Sequence.