# Movieclip following

**URL:** https://forum.kirupa.com/t/movieclip-following/34382
**Category:** Uncategorized
**Created:** [November 1, 2003, 10:30am UTC](https://forum.kirupa.com/t/movieclip-following/34382 "2003-11-01T10:30:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![barge](https://avatars.discourse-cdn.com/v4/letter/b/bbe5ce/32.png) [@barge](https://forum.kirupa.com/u/barge)
#### Post date: [November 1, 2003, 10:30am UTC](https://forum.kirupa.com/t/movieclip-following/34382/1 "2003-11-01T10:30:28Z")

</div>

Can someone post the action script to add to a movie clip inside a button, to get the movie clip to follow the mouse? I just can’t get it, i think its cause it’s 2:30 in the morning. Thanks.

:mario:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 1, 2003, 12:43pm UTC](https://forum.kirupa.com/t/movieclip-following/34382/2 "2003-11-01T12:43:16Z")

</div>

```auto
movieclip.onMouseMove = function(){
this._x = _root._xmouse;
this._y = _root._ymouse;
}

```

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [November 1, 2003, 2:54pm UTC](https://forum.kirupa.com/t/movieclip-following/34382/3 "2003-11-01T14:54:18Z")

</div>

Well it depends.

You can’t really target a movieclip INSIDE a button… unless that button is another movieclip symbol instead of a button symbol.
