Revision: 14345
Updated Code
at August 4, 2009 00:12 by StrawMan
Updated Code
private var _container:Boolean; private var _objarray:Array = new Array(); private var _cont:Sprite; ///////////////////////////// //Add multiple children. ////////////////////////////// private function addChildren (_objarray, _container = false, _cont = null) { for (var j:int = 0; j < _objarray.length; j++) { if(_container) { _cont.addChild(_objarray[j]); } else { addChild (_objarray[j]); } } } //////////////////////////////
Revision: 14344
Updated Code
at August 4, 2009 00:12 by StrawMan
Updated Code
private var _container:Sprite; private var _objarray:Array = new Array(); private var _cont:Sprite; ///////////////////////////// //Add multiple children. ////////////////////////////// private function addChildren (_objarray, _container = false, _cont = null) { for (var j:int = 0; j < _objarray.length; j++) { if(_container) { _container.addChild(_objarray[j]); } else { addChild (_objarray[j]); } } } //////////////////////////////
Revision: 14343
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 31, 2009 09:38 by StrawMan
Initial Code
private var _container:Sprite; private var _objarray:Array = new Array(); ///////////////////////////// //Add multiple children. ////////////////////////////// private function addChildren (_objarray, _container = false) { for (var j:int = 0; j < _objarray.length; j++) { if(_container) { _container.addChild(_objarray[j]); } else { addChild (_objarray[j]); } } } //////////////////////////////
Initial URL
Initial Description
Initial Title
Add array of children to display list.
Initial Tags
list, array
Initial Language
ActionScript 3