Pillage through and get nested mc's

function pillage(mc)
{
        for (var a in mc) {
                if (mc[a] instanceof MovieClip) {
                        trace(mc[a]._name);
                        pillage(mc[a]);
                }
        }
}

pillage(_root) 


Regards,
 
Bjorn Schultheiss
Senior Flash Developer
QDC Technologies

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Johannes Nel
Sent: Tuesday, 10 October 2006 11:38 AM
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Iterate over all movieclips in a timeline

this will only do the current frame, you cannot do the entire timeline (well
you can in jsfl :) )

On 10/9/06, Steven Sacks | BLITZ <[EMAIL PROTECTED]> wrote:
>
> > I feel a bit boneheaded asking this... is there any way of iterating 
> > over all movie clips in a timeline?
>
> for (var a in this) {
>         if (this[a] instanceof MovieClip) {
>                 trace(this[a]._name);
>         }
> }
>
> BLITZ | Steven Sacks - 310-551-0200 x209
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training 
> http://www.figleaf.com http://training.figleaf.com
>



-- 
j:pn
http://www.lennel.org
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to