# Auto Incremented Button

**URL:** <https://forum.kirupa.com/t/auto-incremented-button/201484>\
**Category:** flash\
**Created:** [September 21, 2006, 6:24pm UTC](https://forum.kirupa.com/t/auto-incremented-button/201484 "2006-09-21T18:24:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lewwy](https://avatars.discourse-cdn.com/v4/letter/l/85f322/32.png) [@Lewwy](https://forum.kirupa.com/u/Lewwy)\
**Post date:** [September 21, 2006, 6:24pm UTC](https://forum.kirupa.com/t/auto-incremented-button/201484/1 "2006-09-21T18:24:25Z")

</div>

I got a button working on an old application where everytime the button was pressed, a variable (i) was incremented by one, and then I used

```auto
on(release){
gotoAndStop(i);
}

```

but its not working anymore… Could I be doing anything stupidly wrong?
