Code snipplet to retieve all children contained within a movie clip:

Actionscript:
  1. public function getAllChildren(target_mc):Array {
  2. var childrenArray:Array = new Array;
  3. for (var i:uint = 0; i <target_mc.numChildren; i++){
  4. //trace ('\t|\t ' +i + '.\t name:' + target_mc.getChildAt(i).name + '\t type:' + typeof (target_mc.getChildAt(i)) + '\t' + target_mc.getChildAt(i));
  5. childrenArray.push(target_mc.getChildAt(i));
  6.  
  7. }
  8. return childrenArray;
  9. }