# rollOver button to keep rollingOver

**URL:** <https://forum.kirupa.com/t/rollover-button-to-keep-rollingover/112568>\
**Category:** Uncategorized\
**Created:** [June 9, 2004, 9:00am UTC](https://forum.kirupa.com/t/rollover-button-to-keep-rollingover/112568 "2004-06-09T09:00:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![amanuo](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@amanuo](https://forum.kirupa.com/u/amanuo)\
**Post date:** [June 9, 2004, 9:00am UTC](https://forum.kirupa.com/t/rollover-button-to-keep-rollingover/112568/1 "2004-06-09T09:00:49Z")

</div>

Hi,  
I have button that makes an object move (north east south west buttons) then the mouse rolls over.

[color=blue]on (rollOver){[/color]  
[color=blue] object.\_y = object.\_y + 5;[/color]  
[color=#0000ff]}[/color]  
[color=#0000ff][/color]  
[color=black]But this way, the object only does this one time. Untill you rollover again.[/color]  
How do i get it to keep giving the action for aslong as the mouse is on the button?  
([color=blue]gotoAndStop(1)[/color] on the next frame doesnt work)

Should be very easy, but cant figure it out myself.
