_currentframe HELP

Hi Everyone,
I just want to seek some expert advise… I just want to know if “_currentframe” can make another action when it reaches a specific frame upon on(press). Here’s the script

on(press){
this.gotoAndPlay(2);
{
if (this._currentframe == 10){_root.gotoAndPlay(2);
}
else{
this.null();
}
}
}

======================================

  1. There are several buttons in the flash movie and each button has a differenct action each time it reaches a frame. I don’t know if frame actions will do the job because if i want to reach my frame 10 frameaction and i have an action in frame 9 ofcourse it will do 9 first.
  2. I’m not really sure if my else statemet is ok. I just want the “else” to do nothing.

Thanks a lot and i hope for your expert advises! :slight_smile: