Frame Detection

Hi, just wondering if there is a class that allows for frame number detection.

for example i have a button the i want to advance the timeline to the next frame on release,

this.button_btn.onRelease = function() {
gotoAndStop(*current frame number + 1*)
}

whats the easiest way of achieving this? I’ve had a look at the flash help files, and run a search on this forum with no luck so far.

cheers,

-ollie