# Rollover speed issue

**URL:** <https://forum.kirupa.com/t/rollover-speed-issue/159070>\
**Category:** Uncategorized\
**Created:** [August 14, 2005, 2:00pm UTC](https://forum.kirupa.com/t/rollover-speed-issue/159070 "2005-08-14T14:00:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommyhaych](https://avatars.discourse-cdn.com/v4/letter/t/ce73a5/32.png) [@tommyhaych](https://forum.kirupa.com/u/tommyhaych)\
**Post date:** [August 14, 2005, 2:00pm UTC](https://forum.kirupa.com/t/rollover-speed-issue/159070/1 "2005-08-14T14:00:34Z")

</div>

Hey,

I’m making a menu where if I rollover a button, an object moves along the x co-ordinate.

Here’s what I got so far…

> 

on (rollOver) {  
myMovieX = getProperty(\_root.chair, \_x);  
speed = 4;  
chair.\_x += speed;

```
if (chair._x &gt; 570) chair._x=-82;

```

}

Everything seems to work, except the fact that the object only moves once when I rollover. To move it a great distance I have to keep rolling over the button.

What do I need to do to my code to make the object move continuously when i rollover the button?

Thanks,  
Tom
