use a for..in. this comes straight from the AS Dictionary:
Code:
for (name in myMovieClip) {
if (typeof (myMovieClip[name]) == "movieclip") {
trace ("I have a movie clip child named "+name);
}
}
that will find every child object which is a movie clip.
__________________
Cheers
Jesse Stratford
ActionScript.org Cofounder
Please
don't email or PM me Flash questions, that's what the Forums are for!
Please don't rely on me reading my PMs either. Email me about important stuff.