# Buttons problem

**URL:** https://forum.kirupa.com/t/buttons-problem/6656
**Category:** flash
**Created:** [October 13, 2002, 2:41pm UTC](https://forum.kirupa.com/t/buttons-problem/6656 "2002-10-13T14:41:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Didiusthegreat](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Didiusthegreat](https://forum.kirupa.com/u/Didiusthegreat)
#### Post date: [October 13, 2002, 2:41pm UTC](https://forum.kirupa.com/t/buttons-problem/6656/1 "2002-10-13T14:41:40Z")

</div>

As you know i live in belgium, so this site is dutch, but that’s not important!

[http://www.collegeveurne.be](http://www.collegeveurne.be)

Well, on the left of this page you have the button: normal if you rollover it, it start turning. Now what I want to know is: How do you let the button return to it’s original state, when you rollout?

thx=)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 14, 2002, 10:20am UTC](https://forum.kirupa.com/t/buttons-problem/6656/2 "2002-10-14T10:20:02Z")

</div>

Hi,

use something like this in the last frame of the rotation animation:

if (rolledOver){  
gotoAndPlay(1);  
else{  
gotoAndStop(1);  
}

then in the button itself:  
on(rollOver){  
instanceName.play();  
instanceName.rolledOver= true;  
}  
on(rollOut){  
instanceName.rolledOver= false;  
}

cheers

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [October 20, 2002, 11:52am UTC](https://forum.kirupa.com/t/buttons-problem/6656/3 "2002-10-20T11:52:52Z")

</div>

Mmm, it’s been a while, kirupa’s still the same (new smilies though). Well, eki’s right. Just use if-commands, but those buttons are rather complicated, congratulations to the creator…

Hahaha

P.S. I made those buttons :evil:

Seticus
