Link to home
Start Free TrialLog in
Avatar of brentcc
brentcc

asked on

Flash actionscript "collections"

Is there a way of accessing all movie clips in a movie. I want to do something similar to collections in javascript. Basically, I want to be able to add a movie clip sprite e.g. a pacman to any movie and have it move around and know when it collides with any other movie clip (it's not being dragged)

so something like:?

for (Loop = 0; Loop<AllMovieClips.length; Loop++) {
     trace(AllMovieClips[Loop]._target);
}

I want to know if there is something in actionscript equivalent to AllMovieClips i.e. a collection of all the movie clip objects in a movie that i can access by an identifier number.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of henryww
henryww

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of brentcc
brentcc

ASKER

Perfect! Thanks.

Brent