# Frame Detection

**URL:** https://forum.kirupa.com/t/frame-detection/200699
**Category:** flash
**Created:** [September 14, 2006, 11:36am UTC](https://forum.kirupa.com/t/frame-detection/200699 "2006-09-14T11:36:39Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ollie1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ollie1/32/2180_2.png) [@ollie1](https://forum.kirupa.com/u/ollie1)
#### Post date: [September 14, 2006, 11:36am UTC](https://forum.kirupa.com/t/frame-detection/200699/1 "2006-09-14T11:36:39Z")

</div>

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,

```auto
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
