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
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.
___
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
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
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
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
6 matches
Mail list logo