Ok, this may be a first. I'm going to go ahead and answer my own posting with a solution I found from a long time ago.
Here you go Jay :-) This is the solution: /* will result in recursive listing of all objects within all objects */ _global.traceObjects = function (obj, recursive, restrictTo) { // potential restrictTo's include: // movieclip,number,boolean,string,undefined,object,function,null; // for (item in obj) { var objDepth = obj.getDepth(); var objHeight = obj[item]._height; if (restrictTo.length>0 && typeof (obj[item]) == restrictTo) { // traceResults+="Found: "+typeof (obj[item])+" "+item+" at depth "+objDepth+"\n"; traceResults+=typeof (obj[item])+" "+obj+"."+item+" height = "+objHeight+"\n"; } if (restrictTo.length<1) { // traceResults+="Found: "+typeof (obj[item])+" "+item+" at depth "+objDepth+"\n"; traceResults+=typeof (obj[item])+" "+obj+"."+item+" height = "+objHeight+"\n"; } if (recursive == "true") { traceObjects(obj[item], restrictTo); } } return traceResults; }; -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jay Lepore Sent: Thursday, December 01, 2005 4:07 PM To: 'Flashcoders Mailing List' Subject: [Flashcoders] Recursive Loop showing all items Hello, Can anyone provide with a recursive loop that loops through every mc and further loops through every child mc's listing every movieclip, string, object etc along the way? I know such code is out there and rather than recreate the wheel I thought I'd tap the experts on it. What sayeth the group? I had received a response to this previously, however, just the a blank stage with the Macromedia standard scrollBar component dragged onto it would result in the error: 256 levels of recursion were exceeded in one action list. This is probably an infinite loop. Further execution of actions has been disabled in this movie. So I'm guessing there's a break feature missing in the code somewhere. Jay FlashBOMB.com _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders