Flash: Reusing movie clip causing problems.?

Avenger

New member
To keep this simple, I'm going to post a simplified example that shows the problem I'm having.

Let's say I have a movie clip in my library of a circle with 3 movie clips of squares placed inside it. I write some action script that allows me to spin the three square clips along the edge of the circle using a custom built slider that manipulates the x and y coordinates of the three clips. This script works by invoking the 3 square clips instance names.

I use 3 frames on the timeline, adding my circle clip to the stage once per frame. The end result is three versions of the same movie clip on the stage at the same time by frame 3.

The problem I'm having is that since I'm manipulating instance names of the clips contained inside my circle, my slider is only affecting the 3rd and final circle that was put on the stage. In other words, I can use the first or second circle movie clips slider, but it affects the third circle.

How can I make the slider in circle one, slide it's content, and the same for two and three, instead of them all manipulating the last instance put on the stage? The rub is, I can't change the unique instance names applied to the clips inside the circles since my action script uses those names.
My action script is actually contained inside the circle movie clips, not on the main timeline.
 
Back
Top