Correct use of _currentframe

Hello! Recently, I found out I could use _currentframe to check which frame my MC is on. However, when trying to get it to work, my script doesn’t work… Here’s my AC:


onClipEvent(enterFrame) [
      if(this._currentframe == 5) {
            _root.gotoAndStop("the_crazy_frame_of_coolness");
      }
}

The code makes sense, but nothing happens - not even any errors come up! Explanations of this would be much appreciated.:smirk: