Controlling mcs playing on the root layer

Here’s my set up. I have a flash presentation on the main (_root) timeline. There is a separate layer and frame for each of my mc’s which display the main content of the presentation. mc1 on frame 2, mc2 on frame 3 etc etc. On the main timeline i also have play/stop, skip forward and skip backwards buttons (buttons not mc’s).
The presentation autoplays when it is opened. W

hen the user clicks the STOP button i want the controls to skip back to the first frame of the mc that is currently playing. My problem is that when all of the mcs are named something different, so how to i make the button know which mc is currently playing and go to the first frame of it?

Is there specific code that refers to “whatever mc is playing go to its first frame and stop”?

Thanks

Hi Magicmule

it may be better for you to use a generic instance name for the mcs on the timline “content_mc” then have actionscript on release function of the STOP button, tell content_mc to gotoAndStop(1). then it doesnt matter which frame its on as it will still be the same command.

just an idea.

or just tell all of the instance names to do the same thing. content_mc to gotoAndStop(1)…content2_mc to gotoAndStop(1).content3_mc to gotoAndStop(1). etc but you may need an if statement somewhere.

im sure there are other ways too but i hope that helps.

JFXIW