If a certain frame in an mc is playing

Hey, I have seen how it is possible to use actionscript so that a certain action is played if a particular frame is playing: so that if a button is clicked in frame 7, a certain action happens, if the button is clicked in any other frame, something else happens. Well Iā€™d like to do that for an mc: so that if the current frame of an mc = e.g. 7 then perform a particular action, if not, play a different action. Thanks to anyone who has a clue what I am talking about :wink:

Insomniac

on (release) {
if (this._currentframe == 7) {
//some code
} else if (this._currentframe == 8) {
//some other code
} else {
//some other code
}
}

That should do nicely, thanks :slight_smile: