| Package | org.as3lib.kitchensync.action |
| Class | public class KSSequenceGroup |
| Inheritance | KSSequenceGroup |
| Subclasses | KSRandomGroup, KSStepedSequenceGroup |
| Property | Defined by | ||
|---|---|---|---|
| autoDelete : Boolean
autoDelete is a flag that indicates whether the action should be killed
when it is done executing.
| AbstractAction | ||
| childActions : Array
An array containing all of the child actions of the group.
| AbstractActionGroup | ||
| childrenAreRunning : Boolean [read-only]
| KSSequenceGroup | ||
| currentAction : IAction
[read-only]
| KSSequenceGroup | ||
| delay : int
delay is the time that will pass after the start() method is called
before the action begins.
| AbstractAction | ||
| duration : * | AbstractActionGroup | ||
| durationHasElapsed : Boolean
Checks to see whether the duration of the action has elapsed and if the _startTime is defined.
| AbstractAction | ||
| isInstantaneous : Boolean Returns true if the action will occur instantaneously when started
| AbstractAction | ||
| isPaused : Boolean
Will return true if the action is paused (after pause() has been called).
| AbstractAction | ||
| isRunning : Boolean
The human-readable name of this action.
| AbstractAction | ||
| offset : int
legacy accessors.
| AbstractAction | ||
| pauseTime : Timestamp
The time at which the action was last paused.
| AbstractAction | ||
| resetChildrenAtStart : Boolean = true If true, the group's KSTween children will reset to their default positions when the group is started.
| AbstractActionGroup | ||
| startTime : Timestamp
The time at which the action was last started.
| AbstractAction | ||
| startTimeHasElapsed : Boolean
Checks to see whether the start time delay has elapsed and if the _startTime is defined.
| AbstractAction | ||
| sync : Boolean
Setting sync to true will cause the action to sync up with real time
even if framerate drops.
| AbstractAction | ||
| timeStringParser : ITimeStringParser
[static]
The timeStringParser will determine how strings are parsed into valid
time values.
| AbstractAction | ||
| Property | Defined by | ||
|---|---|---|---|
| _autoDelete : Boolean | AbstractAction | ||
| _childActions : Array | AbstractActionGroup | ||
| _currentAction : IAction = null | KSSequenceGroup | ||
| _currentActionIndex : int = -1 | KSSequenceGroup | ||
| _delay : int = 0 | AbstractAction | ||
| _duration : int = 0 | AbstractAction | ||
| _paused : Boolean = false | AbstractAction | ||
| _pauseTime : Timestamp | AbstractAction | ||
| _running : Boolean = false | AbstractAction | ||
| _startTime : Timestamp | AbstractAction | ||
| _sync : Boolean | AbstractAction | ||
| Method | Defined by | ||
|---|---|---|---|
|
KSSequenceGroup(... children)
Constructor.
| KSSequenceGroup | ||
|
Adds an action to the group.
| AbstractActionGroup | ||
|
addActionAtIndex(action:IAction, index:int = -1):void
Adds an action to the group at the specified index.
| AbstractActionGroup | ||
|
addEventTrigger(dispatcher:IEventDispatcher, eventType:String):void
Causes the action to start playing when a specified event is fired.
| AbstractAction | ||
|
addTrigger(trigger:IAction):void
Causes the action to start playing when another event completes.
| AbstractAction | ||
| KSSequenceGroup | |||
|
getChildAtIndex(index:int):IAction
Returns the action at the specified index.
| AbstractActionGroup | ||
|
kill():void
| AbstractActionGroup | ||
|
pause():void
| AbstractActionGroup | ||
|
register():void
Adds the action as a listener to the Synchronizer's update event.
| AbstractAction | ||
|
Removes an action from the group.
| AbstractActionGroup | ||
|
removeActionAtIndex(index:int):IAction
Removes an action at the specified index.
| AbstractActionGroup | ||
|
removeEventTrigger(dispatcher:IEventDispatcher, eventType:String):void
Removes an event trigger added by addEventTrigger().
| AbstractAction | ||
|
removeTrigger(trigger:IAction):void
Removes a trigger added with addTrigger().
| AbstractAction | ||
|
reverseChildOrder():void
Reverse the order that the children play back in.
| AbstractActionGroup | ||
|
Override start to automatically quit if there are no children.
| KSSequenceGroup | ||
|
stop():void
| AbstractActionGroup | ||
|
toString():String
| KSSequenceGroup | ||
|
unpause():void
| AbstractActionGroup | ||
|
unregister():void
Removes the action as a listener to the Synchronizer's update event.
| AbstractAction | ||
|
Listens for updates to synchronize the start time of the sequence.
| KSSequenceGroup | ||
| Method | Defined by | ||
|---|---|---|---|
|
checkForComplete():Boolean
Checks to see if all of the children have completed.
| KSSequenceGroup | ||
|
complete():void
override to reset the _currentActionIndex.
| KSSequenceGroup | ||
|
forceUpdate():void
Foreces the update() method to fire without being triggered by Synchronizer.
| AbstractAction | ||
|
onChildFinished(event:KitchenSyncEvent):void
Called when child actions are completed.
| KSSequenceGroup | ||
|
onChildStart(event:KitchenSyncEvent):void
Dispatches a CHILD_START event when the child begins.
| AbstractActionGroup | ||
|
onTrigger(event:Event):void
Handler that starts playing the action that is called by a trigger event.
| AbstractAction | ||
|
Starts playing the next action in the sequence.
| KSSequenceGroup | ||
| Constant | Defined by | ||
|---|---|---|---|
| NO_CURRENT_ACTION_INDEX : int = -1 | KSSequenceGroup | ||
| childrenAreRunning | property |
childrenAreRunning:Boolean [read-only]Implementation
public function get childrenAreRunning():Boolean
| _currentAction | property |
protected var _currentAction:IAction = null
| currentAction | property |
| _currentActionIndex | property |
protected var _currentActionIndex:int = -1
| KSSequenceGroup | () | constructor |
public function KSSequenceGroup(... children)Constructor.
Parameters... children |
— - if any children are not of type AbstractSynchronizedAction.
|
| checkForComplete | () | method |
protected function checkForComplete():BooleanChecks to see if all of the children have completed. If so, calls the complete method.
ReturnsBoolean — true if complete, otherwise false.
|
| clone | () | method |
| complete | () | method |
protected override function complete():voidoverride to reset the _currentActionIndex.
| onChildFinished | () | method |
protected override function onChildFinished(event:KitchenSyncEvent):voidCalled when child actions are completed. After each is finished, checks to see if the sequence is complete. If not, it starts the next child. Also remove reference to child action so it can be garbage collected.
Parametersevent:KitchenSyncEvent — - The SynchronizerEvent.COMPLETE from the _currentAction
|
| start | () | method |
public override function start():IActionOverride start to automatically quit if there are no children.
ReturnsIAction |
| startNextAction | () | method |
protected function startNextAction():IActionStarts playing the next action in the sequence. Listens for the COMPLETE event for each child and runs onChildFinished() when each child completes. The action that is currently playing will be stored in _currentAction which is publicly accessible.
ReturnsIAction —
The currently playing action.
|
| toString | () | method |
public override function toString():String
Returns
String |
| update | () | method |
public override function update(currentTimestamp:Timestamp):voidListens for updates to synchronize the start time of the sequence. The first action in the sequence is called by using the startNextAction() method. After the Sequence starts running, it no longer needs to listen to updates so it unregisters.
ParameterscurrentTimestamp:Timestamp |
| NO_CURRENT_ACTION_INDEX | constant |
protected const NO_CURRENT_ACTION_INDEX:int = -1