# Button control \[un-work\]

**URL:** https://forum.kirupa.com/t/button-control-un-work/265472
**Category:** flash
**Created:** [July 9, 2008, 10:16am UTC](https://forum.kirupa.com/t/button-control-un-work/265472 "2008-07-09T10:16:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mindriders](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindriders/32/2140_2.png) [@Mindriders](https://forum.kirupa.com/u/Mindriders)
#### Post date: [July 9, 2008, 10:16am UTC](https://forum.kirupa.com/t/button-control-un-work/265472/1 "2008-07-09T10:16:54Z")

</div>

Hi there… i just wanna share about my script.  
concept idea is racing. fake racing game. because i just playing tweening on background.  
but i had trouble on button control. the bar meter in top not playing back to the first frame.  
and heres is the code.

```auto
on(release) {
    bar.nextFrame();
}
on(releaseOutside) {
    prev.gotoAndPlay(2)
}

```

\*at prev instances, it just looping frame.  
frame 1 / stop  
frame 2 / prevFrame();  
frame 3 / gotoAndPlay(2); / it makes playback animation. my version 😉

is there anything wrong?  
i know i cant making a game. this is just tease to opening the page. :)…

almost forgot. here the preview :  
[http://zhimetcardozo.com/portfolio/prototype/flash/cargame01/car2.swf](http://zhimetcardozo.com/portfolio/prototype/flash/cargame01/car2.swf)

dont laugh. :D… it just prototype. 😉 thanks my friend  
\*sorry for my english

Note :  
Bar control is a button & UP Arrow key

---

<div class="post-metadata">

### Author: ![Mindriders](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindriders/32/2140_2.png) [@Mindriders](https://forum.kirupa.com/u/Mindriders)
#### Post date: [July 10, 2008, 9:15am UTC](https://forum.kirupa.com/t/button-control-un-work/265472/2 "2008-07-10T09:15:05Z")

</div>

closed!.. i found it. 🙂  
[http://zhimetcardozo.com/portfolio/prototype/flash/cargame01/car-control.swf](http://zhimetcardozo.com/portfolio/prototype/flash/cargame01/car-control.swf)

nb:  
this not for game, this just a frame to frame tweaking. 😉  
thanks for watching.
