Play movieclip

[size=6]Hello ![/size] :slight_smile:

I wonder a thing:
When i press down button 1 the movieclip “effect” will gotoAndPlay(2).
After that, i press down button 2, then will “effect” gotoAndPlay(40) then gotoAndPlay(2), but ONLY do gotoAndPlay(40) if any button before is pressed down.
It should be something like this on each button… (im not so good at AS :()

[color=red]//if effect is already have gone frame 2,then do gotoAndPlay(40), then gotoAndPlay(2)[/color]

Please help me ! I dont know how i can explain this is you guys dont understand. (even not with a file)