# Rollovers not refreshing

**URL:** https://forum.kirupa.com/t/rollovers-not-refreshing/6740
**Category:** flash
**Created:** [October 15, 2002, 2:41pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740 "2002-10-15T14:41:08Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![earph](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/earph/32/79_2.png) [@earph](https://forum.kirupa.com/u/earph)
#### Post date: [October 15, 2002, 2:41pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/1 "2002-10-15T14:41:08Z")

</div>

I’ve got my rollovers working, but they’re not refreshing if you mouseover them real fast. I assume it’s because it’s not catching the “mouseOut”.

Here’s the code:

on (rollOver) {  
gotoAndPlay (2);  
}

on (rollOut) {  
gotoAndPlay (18);  
}

Here’s the URL, check it out: [http://www.expresiv.com/demos/dictatenet.html](http://www.expresiv.com/demos/dictatenet.html)

Any way to clean this script up?

---

<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 15, 2002, 4:38pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/2 "2002-10-15T16:38:08Z")

</div>

interesting behavior. If you rollout of the mouse by going to the right (horizontally only), they all rollout fine. If you go up or down, they don’t. I have no idea what is wrong. Do you have enough space between buttons? Any other code underneath?

---

<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 15, 2002, 4:43pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/3 "2002-10-15T16:43:56Z")

</div>

I have had the same problem before… :_( I just can’t remember how I fixed it… :_(

you might try reversing the order… in other words, put the rollout first… :-\

may not work, but you might want to give it a try… along with making the hit states smaller…

If I remember, I will let you know…:elderly:

Rev:elderly:

---

<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 15, 2002, 5:24pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/4 "2002-10-15T17:24:23Z")

</div>

I’ve seen odd behavior with overlapping buttons. Maybe that is what is happening here.

---

<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 15, 2002, 5:32pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/5 "2002-10-15T17:32:27Z")

</div>

I´ve had the same problem. What I did was to create the animation for the rollout behavior an put that in the “up” frame off the button and I made the animation for the rollover effect and put that in the “over” frame of the button. That should work out just fine. The only problem is that the buttons animates when loaded, but that shouldn’t be too big of a problem!🙂

---

<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 15, 2002, 5:39pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/6 "2002-10-15T17:39:59Z")

</div>

Yeah… that’s what I was trying to avoid by doing this, was getting rid of the animate when the movie loaded.

There is actually a tutorial that shows how to do the rollovers… the only problem is that the movie loops, and I can 't get it to stop.

Check it: [http://www.teamphotoshop.com/flash/tutorials/rollover/rollover.php](http://www.teamphotoshop.com/flash/tutorials/rollover/rollover.php)

---

<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 15, 2002, 5:59pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/7 "2002-10-15T17:59:26Z")

</div>

put a stop on the last frame of your movie.

---

<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 15, 2002, 6:03pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/8 "2002-10-15T18:03:22Z")

</div>

That doesnt seem to work for me… have you looked at the tutorial? It has an .fla to download so you can try it. It doesn’t work for me.

---

<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 15, 2002, 6:03pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/9 "2002-10-15T18:03:52Z")

</div>

Maybe u could use this tut:

[http://www.flashkit.com/tutorials/Actionscripting/Basic/Buttons\_-Jim\_Tude-804/index.php](http://www.flashkit.com/tutorials/Actionscripting/Basic/Buttons_-Jim_Tude-804/index.php)

this should work with what u are trying to do!🙂

---

<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 15, 2002, 6:06pm UTC](https://forum.kirupa.com/t/rollovers-not-refreshing/6740/10 "2002-10-15T18:06:14Z")

</div>

Yeah… that looks better thanks. I’ll try this one and get back to ya.
