# Complex Mouse Follower

**URL:** <https://forum.kirupa.com/t/complex-mouse-follower/155899>\
**Category:** flash\
**Created:** [July 21, 2005, 4:23am UTC](https://forum.kirupa.com/t/complex-mouse-follower/155899 "2005-07-21T04:23:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VersusMG](https://avatars.discourse-cdn.com/v4/letter/v/898d66/32.png) [@VersusMG](https://forum.kirupa.com/u/VersusMG)\
**Post date:** [July 21, 2005, 4:23am UTC](https://forum.kirupa.com/t/complex-mouse-follower/155899/1 "2005-07-21T04:23:08Z")

</div>

Okay I tried posting this in the MX04 section but couldn’t get an answer so i’m trying it here.

[www.versusmediagroup.com/haines](http://www.versusmediagroup.com/haines)

after the quick intro you’ll notice that your mouse goes away and turnes into a hand that looks like its knocking on the door. And that is just what i want it to do. I have the hand\_mc set up with a stop(); action in the first frame of the MC and a quick animation that should play out once you click the mouse and once the animation is finished play the rest of the animation.

Any help would be great.

Here is the code i’ve tried so far:

```auto

Mouse.hide();
//
var mouseListener:Object = new Object();
mouseListener.onMouseMove = function() {
	hand_mc._x = _xmouse;
	hand_mc._y = _ymouse;
};
mouseListener.onMouseDown = function() {
	if (door.hitTest(_xmouse, _ymouse, false)) {
		hand_mc.gotoAndPlay(2);
	}
};
Mouse.addListener(mouseListener);
hand_mc.startDrag(true, 0, 147, 552, 317); 

```

🙂
