If you're looking for something a bit more advanced, check out the
Composite design pattern.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
A quick way:
// this = the parent MC
for (var child:String in this){
if (child instanceof MovieClip) {
// do your children mc manipulations...
}
}
2006/11/23, Wendy Richardson [EMAIL PROTECTED]:
If I have a mc with some mc's attached, is there a quick way to
list/access/manipulate the
Another way (maybe a smarter and cleaner one):
create an array of children and fill it when you attach the children mc.
var children:Array = [];
function addChild(link:String, name:String, depth:Number){
var child:MovieClip = this.attachMovie(link, name, depth);
children.push(child);
}
and
try
for (var i in my_mc){
if (typeof(my_mc[i]) == movieclip)){
my_mc[i].foo();
}
}
2006/11/23, Wendy Richardson [EMAIL PROTECTED]:
If I have a mc with some mc's attached, is there a quick way to
list/access/manipulate the attached mc's without using their explicit
names? Some
4 matches
Mail list logo