[Flash5]Using Variable as Movie Clip Name

Hello All:
I want to cycle through several movie clips for a training application. I plan to use an array to hold the clip names, and a variable (CurrentClip) to set visibility and allow me to use a single pause/ play button throughout.

For the visibility, I’ve found that…
[COLOR=royalblue]CurrentClip._visible = false;[/COLOR] does NOT work.
But…
[COLOR=royalblue]setProperty (CurrentClip, _visible, false);[/COLOR] does work.

However, for the pause/play function…
[COLOR=royalblue]CurrentClip.stop();[/COLOR] does NOT work.

Seems like it’s looking for a clip with the literal name “CurrentClip” instead of the variable value.

How do I get around this? Is there an alternative way to call the MovieClip.stop() method that will allow me to use a variable for the clip name?

Many thanks,
donaloh

that if they are located at the main timeline (_root)

=)

Thanks for the post, but that didn’t do it.

I got the solution off-thread, using…
this[CurrentClip].stop();
instead of…
CurrentClip.stop();

Many thanks,
donaloh