# Mouse Follow: I've read the Tute

**URL:** https://forum.kirupa.com/t/mouse-follow-ive-read-the-tute/55432
**Category:** flash
**Created:** [June 23, 2004, 10:01pm UTC](https://forum.kirupa.com/t/mouse-follow-ive-read-the-tute/55432 "2004-06-23T22:01:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![akawoody](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@akawoody](https://forum.kirupa.com/u/akawoody)
#### Post date: [June 23, 2004, 10:01pm UTC](https://forum.kirupa.com/t/mouse-follow-ive-read-the-tute/55432/1 "2004-06-23T22:01:38Z")

</div>

I have read the tutorial on this and am using the following code:

onClipEvent (load) {  
\_x = 78;  
\_y = 163;  
speed = 5;  
}  
onClipEvent (enterFrame) {  
endX = \_root.\_xmouse;  
endY = \_root.\_ymouse;  
\_x += (endX-\_x)/speed;  
\_y += (endY-\_y)/speed;  
}

My issue is this: I want the movie clip image (instance name: Check) to start at the location (X=78, Y=163) and not immediately “run” up to X=0, Y=0 when the movie loads. I just want it to hover in the middle of the movie until the cursor enters the image.

Thanks.

BTW: Great site.
