Need help with the flash if the current frame


Hi I am not familiar with flash action script that much much. The part I need help with is I have three movie clips and one button the movie clips are called ex_1 ex_2 ex_3.

I want to firstly check if the movie clips are on frame 15 if they are I want to perform gotoAndPlay frame number 16 if any of the 3 are not on a specific frame I want to perform gotoAndPlay for the movie clips that are on frame 15.

I hope I made some sense and any help is appreciated thanks in advance!

I don't understand the whole question, but can help you part by part.

Checking the frame number and moving can be done like this:

ex_1.addEventListener(Event.ENTER_FRAME, onEnterFrame);

private function onEnterFrame(e:Event):void
   if (ex_1.currentFrame == 15)

The other part is not clear, but you could iterate trough the movie clips and check if any is not on the specific frame and then setting the desired frame with gotoAndPlay.