# onRollOver Movie Clip Scroll?!

**URL:** <https://forum.kirupa.com/t/onrollover-movie-clip-scroll/187469>\
**Category:** flash\
**Created:** [April 29, 2006, 12:45pm UTC](https://forum.kirupa.com/t/onrollover-movie-clip-scroll/187469 "2006-04-29T12:45:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxoys45](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/maxoys45/32/1122_2.png) [@maxoys45](https://forum.kirupa.com/u/maxoys45)\
**Post date:** [April 29, 2006, 12:45pm UTC](https://forum.kirupa.com/t/onrollover-movie-clip-scroll/187469/1 "2006-04-29T12:45:07Z")

</div>

basically i want to make a movie clip that will scroll up when u roll over one button and scroll down when you roll over another. Here is my code (i have kept the comments to show what else i tried)

[COLOR=Blue]onClipEvent[/COLOR] ([COLOR=Blue]load[/COLOR]) {  
[COLOR=Blue]\_root[/COLOR].uparrow.[COLOR=Blue]onRollOver[/COLOR] = [COLOR=Blue]function/COLOR {  
[COLOR=Gray]//if (this.\_y\>100) {  
//\_root.texty.\_y -= 1;[/COLOR]  
[COLOR=Blue]while[/COLOR] ([COLOR=Blue]\_root[/COLOR].texty.[COLOR=Blue]\_y[/COLOR]\>100) {  
[COLOR=Blue] \_root[/COLOR].texty.[COLOR=Blue]\_y[/COLOR] -= 2;  
}  
};  
}

texty is the movie clip. uparrow is another movie clip. The problem i have with this code is that even with 1fps the movie clip jumps straight to \_y = 100 the second i roll over. i want it to slowly move up. any ideas? (sorry if i dont explain it well)
