I think if they EXIST at all in _parent and they are of type "movieclip", then the code will be executed. I use this type of thing all the time to act on multiple movieclips (with generic event handlers, etc.) and it work great.

It shouldn't require you to have access to the mc variables at all.

HTH.
-Rob


On Nov 1, 2005, at 10:06 AM, Éric Thibault wrote:

A million thanks to all!

The only problem is that I don't have access to my mc's variables (I have on the first frame of my mc's a boolean set to true) at start up?

Do I have to let them "live" for at least 1 frame to have access to their variables? If so I'll have to rethink the project with initialisation scripts.

JesterXL wrote:


for(var p in this._parent)
{
   if(typeof(this._parent[p]) == "movieclip")
   {
       // do something here
   }
}

----- Original Message ----- From: "Éric Thibault" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Tuesday, November 01, 2005 9:01 AM
Subject: Re: [Flashcoders] retreive all mc's inside parent mc


Éric Thibault wrote:



Hi all!

Is there a way to list all instances (named or not) of mc's inside a
parent mc?  Like in a for or while loop?

And then manimulate them?

Thanks in advance!



I said manu . p . ulate ;-)





--
===============================================================

Éric Thibault
Programmeur analyste
Réseau de valorisation de l'enseignement
Université Laval, pavillon Félix-Antoine Savard
Québec, Canada
Tel.: 656-2131 poste 18015
Courriel : [EMAIL PROTECTED]

===============================================================

Avis relatif à la confidentialité / Notice of Confidentiality / Advertencia de confidencialidad <http://www.rec.ulaval.ca/lce/ securite/confidentialite.htm>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



--

Rob Maurizi
Web Developer / Flash Developer

Center for Teaching & Learning
University of Vermont

802-656-0317 // [EMAIL PROTECTED]
http://rmaurizi.blog.uvm.edu/

"Trying to make everyone happy makes no one happy"

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to