# Problems with an easing movieclip

**URL:** <https://forum.kirupa.com/t/problems-with-an-easing-movieclip/240181>\
**Category:** Uncategorized\
**Created:** [September 30, 2007, 2:33pm UTC](https://forum.kirupa.com/t/problems-with-an-easing-movieclip/240181 "2007-09-30T14:33:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylberg](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kylberg](https://forum.kirupa.com/u/kylberg)\
**Post date:** [September 30, 2007, 2:33pm UTC](https://forum.kirupa.com/t/problems-with-an-easing-movieclip/240181/1 "2007-09-30T14:33:33Z")

</div>

I created a movieclip that follows the mouse up and down with easing, using this code:

onClipEvent (load) {  
\_y = 400;  
speed = 5;  
}  
onClipEvent (enterFrame) {  
endY = \_root.\_ymouse;  
\_y += (endY-\_y)/speed;  
}

what happens is that when I load the page the movieclip goes to where the mouse is right away, before i even put the mouse over the frame. u can check it out at [www.freewebs.com/flaskauf](http://www.freewebs.com/flaskauf)  
it’s a thing for school and im just testing the menu.

how do I get the movieclip to stay at the bottom of the frame until I move the mouse over it?
