# setInterval for on(rollOver)

**URL:** <https://forum.kirupa.com/t/setinterval-for-on-rollover/93742>\
**Category:** Uncategorized\
**Created:** [November 4, 2003, 1:16pm UTC](https://forum.kirupa.com/t/setinterval-for-on-rollover/93742 "2003-11-04T13:16:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![KeeJera](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@KeeJera](https://forum.kirupa.com/u/KeeJera)\
**Post date:** [November 4, 2003, 1:16pm UTC](https://forum.kirupa.com/t/setinterval-for-on-rollover/93742/1 "2003-11-04T13:16:52Z")

</div>

This has probably been answered before but I couldn’t seem to find it. (I am fairly new to this site and FlashMX)

I have up and down buttons controlling the .\_y value of an adjacent MClip. At the (for the up arrow) moment I have:  
on(rollOver){  
myMovieClip.\_y -= 5;  
}  
this works fine but I need it to continuously scroll while the mouse is over (or Press if need be).  
I think it is setInterval that I need for this but I can’t remember how to do it.

Can someone help with this?

Thanks in advance. :thumb:
