# \[FMX\] Problem with RollOver-Button

**URL:** <https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687>\
**Category:** flash\
**Created:** [February 3, 2003, 4:24pm UTC](https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687 "2003-02-03T16:24:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DrSlump](https://avatars.discourse-cdn.com/v4/letter/d/76d3ee/32.png) [@DrSlump](https://forum.kirupa.com/u/DrSlump)\
**Post date:** [February 3, 2003, 4:24pm UTC](https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687/1 "2003-02-03T16:24:42Z")

</div>

Hi everybody!

Thanks to a thread in this board I learned how to create a button with a animated rollover.

I have used the information given in this thread to create a rollover, which is made of a movie clip for the rollOver and the same movie clip in reverse mode for the rollOut.

It works quite fine but there is one problem I just can not get solved:

If you move the mouse out of the button area before the rollOver clip is finished, it jumps to the last frame of the first movie clip, but it does not show the rollOut animation.

[HERE](http://www.rauen.com/flash/index.html) you find the button i am talking about and a link to the Flash-file.

Any idea?

ThAnX!

PS. You will see what I mean when you try to “touch” the button just for a short moment. You will need to refresh your browser to see the correct button again… ☹

---

<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:** [February 3, 2003, 4:38pm UTC](https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687/2 "2003-02-03T16:38:03Z")

</div>

here ya go 😉

i removed the reverse animation and used a hitTest  
if the mouse is over the mc it plays forward … if not it plays backwards

---

<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:** [February 3, 2003, 5:39pm UTC](https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687/3 "2003-02-03T17:39:02Z")

</div>

Hi Kax!

First of all I would like to thank you.

But somehow it seems, as it does not work… ☹

If I choose Flash as preview format (file/publish preview/flash), it works fine…

But if I place it on a HTML-page, the rollover animation runs once, and then stops…

[HERE](http://www.rauen.com/flash/index.html) is an updated version of my link from above with your changed button at the bottom…

How can this be?

---

<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:** [February 3, 2003, 6:19pm UTC](https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687/4 "2003-02-03T18:19:28Z")

</div>

two solutions …

make the movie bigger … leave a margin between the mc and the movie. 40 pixels to the rigth, 40 pixels to the left, 40 pixels to the top and 40 pixels to the bottom

could be more. it’s all about how fast the mouse is moved over the movie

or …

this one seems to be working fine

---

<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:** [February 3, 2003, 6:37pm UTC](https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687/5 "2003-02-03T18:37:10Z")

</div>

Thanks Kax!

The last version you have posted works very fine!

THANX!!

---

<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:** [February 3, 2003, 6:40pm UTC](https://forum.kirupa.com/t/fmx-problem-with-rollover-button/12687/6 "2003-02-03T18:40:51Z")

</div>

no problem man 😏

the problem was the stop() action in frame 33 i think … i just changed it to frame 32 :crazy:
