lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSParallelGroup.ax (swf ) [ flash ] flex
* A group of actions that executes all at once the group is started and the delay is reached.
* Constructor. * * @throws TypeError - if any children are not of type AbstractSynchronizedAction. * * @params children - a list of AbstractSynchronizedActions that will be added as children of the group.
* When the first update occurs, all of the child actions are started simultaniously.
* Called when child actions are completed. After each is finished, checks to see if the entire set is * complete. If not, it waits for the next child. * Completed children are removed from the array so they can be garbage collected. * *
parameter: event - The SynchronizerEvent.COMPLETE * @param event - The SynchronizerEvent.CHILD_COMPLETE */ override protected function onChildFinished (event:KitchenSyncEvent):void { super.onChildFinished(event); var childAction:IAction = IAction(event.target); childAction.removeEventListener(KitchenSyncEvent.COMPLETE, onChildFinished); childAction.removeEventListener(KitchenSyncEvent.START, onChildStart); _runningChildren--; if (_runningChildren == 0) { complete(); } } override public function stop():void { super.stop(); _runningChildren = 0; } override public function clone():IAction { var clone:@ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSParallelGroup = new @ax-lib-flex-animation-code-10-org-as3lib-kitchensync-action-KSParallelGroup(); for (var i:int = 0; i < _childActions.length; i++) { var action:IAction = getChildAtIndex(i).clone(); clone.addActionAtIndex(action, i); } clone.delay = _delay; clone.autoDelete = _autoDelete; return clone; } override public function toString():String { return "Parallel group containing " + _childActions.length + " children"; } }}
[]readme course(s) prefaceI 1 2II 3 4III 5 6 7IV 8 9 10V 11 12 afterthought(s)appendix reference(s) example(s)resource(s) _![]()
(C) Æliens 19/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.