AS3 Get all children of MC


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. for (var i:uint = 0; i < target_mc.numChildren; i++){
  2. trace ('\t|\t ' +i+'.\t name:' + target_mc.getChildAt(i).name + '\t type:' + typeof (target_mc.getChildAt(i))+ '\t' + target_mc.getChildAt(i));
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.