| Package | org.goasap.utils |
| Class | public class SequenceStepCA |
| Inheritance | SequenceStepCA SequenceStep PlayableGroup PlayableBase flash.events.EventDispatcher |
The property advance can be set to an instance of any subclass
of SequenceEvent, so that the ADVANCE event is sent when something specific
occurs other than group completion. (This feature adds a great deal of flexibility
to sequences by enabling them to overlap their actions, instead of being forced
to wait for all child activity in an action to finish before proceeding.)
Various advance types can be found in the util.customadvance package, and you are welcome to add your own by extending the base class SequenceAdvance.
Note that if no custom advance type is set, the ADVANCE event is dispatched just before the group's regular COMPLETE event. If a custom advance type is set, the group will maintain the state PLAYING until it completes, regardless of whether ADVANCE is dispatched during play. It will also maintain that state after it completes until ADVANCE is dispatched, if that occurs after all children are done playing. (Be careful, custom advance types continue running indefinitely if their conditions are never met, so track them closely.)
See also
| Property | Defined by | ||
|---|---|---|---|
| advance : SequenceAdvance
The advance property determines a custom advance behavior for the step
and must be set prior to
start. | SequenceStepCA | ||
![]() | children : Array
Get or set the children array.
| PlayableGroup | |
![]() | listenerCount : uint
Determines the number of children currently being monitored
for completion by the group.
| PlayableGroup | |
![]() | playableID : *
An arbitrary id value for the convenient identification of any
instance, automatically set to an instance count by this class.
| PlayableBase | |
![]() | repeater : Repeater
The groups's Repeater instance, which may be used to make
it loop and play more than one time.
| PlayableGroup | |
![]() | state : String
Returns a PlayStates constant.
| PlayableBase | |
| willAdvance : Boolean [read-only]
Verifies that this SequenceStep has not advanced yet.
| SequenceStepCA | ||
| Method | Defined by | ||
|---|---|---|---|
|
SequenceStepCA(... items)
Constructor.
| SequenceStepCA | ||
| SequenceStepCA | |||
![]() |
anyChildHasState(state:String):Boolean
Test whether any child has a particular PlayState.
| PlayableGroup | |
![]() |
getChildByID(playableID:*, deepSearch:Boolean = true):IPlayable
Searches for a child with the specified playableID.
| PlayableGroup | |
|
pause():Boolean
See PlayableGroup
| SequenceStepCA | ||
![]() |
removeChild(item:IPlayable):Boolean
Removes a single IPlayable from the children array.
| PlayableGroup | |
|
resume():Boolean
See PlayableGroup
| SequenceStepCA | ||
|
skipTo(position:Number):Boolean
See PlayableGroup
| SequenceStepCA | ||
|
start():Boolean
See PlayableGroup
| SequenceStepCA | ||
|
stop():Boolean
See PlayableGroup
| SequenceStepCA | ||
![]() |
toString():String
Appends the regular toString value with the instance's playableID.
| PlayableBase | |
| advance | property |
advance:SequenceAdvance [read-write]
The advance property determines a custom advance behavior for the step
and must be set prior to start.
The advance should be an instance of any subclass of the base class SequenceAdvance (SequenceAdvance cannot be used directly) and must dispatch SequenceEvent.ADVANCE.
Implementation public function get advance():SequenceAdvance
public function set advance(value:SequenceAdvance):void
See also
| willAdvance | property |
willAdvance:Boolean [read-only]Verifies that this SequenceStep has not advanced yet.
Implementation public function get willAdvance():Boolean
| SequenceStepCA | () | constructor |
public function SequenceStepCA(... items)Constructor. See PlayableGroup
Parameters... items |
See also
| addChild | () | method |
public override function addChild(item:IPlayable, adoptChildState:Boolean = false):BooleanParameters
item:IPlayable |
|
adoptChildState:Boolean (default = false) |
Boolean |
| pause | () | method |
public override function pause():BooleanSee PlayableGroup
ReturnsBoolean |
See also
| resume | () | method |
public override function resume():BooleanSee PlayableGroup
ReturnsBoolean |
See also
| skipTo | () | method |
public override function skipTo(position:Number):BooleanSee PlayableGroup
Parametersposition:Number |
Boolean |
See also
| start | () | method |
public override function start():BooleanSee PlayableGroup
ReturnsBoolean |
See also
| stop | () | method |
public override function stop():BooleanSee PlayableGroup
ReturnsBoolean |
See also