'currentframe' actionscript question

Hi all, :slight_smile:

I’ve got a button that tells a movie clip to play its animation (goto and play frame 2), but I only want it to play that frame if the current frame is frame 1 - meaning that I don’t want people to be able to keep clicking the button while the clip is playing and have the clip restart.

Can anybody tell me how this can be done?

I’m guessing it would be something like:

If ( current frame is frame 1 ) { goto and play frame 2 }

But I can’t seem to get it to work.