Re: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread eka
l Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Lutes Sent: Thursday, April 05, 2007 3:09 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Enumerating properties from outside an instance. Thanks John, My loop is even simpler. I failed

RE: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread Steven Sacks | BLITZ
function loopThrough(mc:MovieClip):Void { for (var a:String in mc) { trace(a + ": " + mc[a]); if (mc[a] typeof "movieclip") loopThrough(mc[a]); } } You can use recursion and hope that you don't end up with circular references. ___

RE: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread David Ngo
Sent: Thursday, April 05, 2007 3:09 PM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] Enumerating properties from outside an instance. Thanks John, My loop is even simpler. I failed to mention that I need to examine nested MovieClip instances for functions. Variables seem to appear

RE: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread Jason Lutes
Sent: Thursday, April 05, 2007 3:54 PM > To: flashcoders@chattyfig.figleaf.com > Subject: Re: [Flashcoders] Enumerating properties from > outside an instance. > > You can do it; you must have an error in your code. > > for (var prop:String in clip) > { > var sub

Re: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread John Mark Hawley
You can do it; you must have an error in your code. for (var prop:String in clip) { var subObject:Object = clip[prop]; for (var otherProp:String in subObject) { trace(otherProp + ": " + subObject[otherProp]); } } It should look like that, but not horrible. > > From: "Jas

RE: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread Steven Sacks | BLITZ
Pretend you're a mechanic and somebody calls you up and says the following: "My car starts when it's in my driveway, but it doesn't start when I'm at the store. What's wrong with my car?" Would you be able to help? Show us your code or we can't help you. :) -Steven > -Original Mess