# onMouseMove?

**URL:** https://forum.kirupa.com/t/onmousemove/275209
**Category:** Uncategorized
**Created:** [November 11, 2008, 9:08am UTC](https://forum.kirupa.com/t/onmousemove/275209 "2008-11-11T09:08:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Zenor](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zenor/32/3634_2.png) [@Zenor](https://forum.kirupa.com/u/Zenor)
#### Post date: [November 11, 2008, 9:08am UTC](https://forum.kirupa.com/t/onmousemove/275209/1 "2008-11-11T09:08:56Z")

</div>

Hello everyone.

I am using the following code in order to create an effect when the mouse moves:

```auto
var count = 0;

_root.onMouseMove = function()
{

    _root.attachMovie("MCTween", "MCTween" + count, count);
    _root["MCTween" + count]._x = _xmouse;
    _root["MCTween" + count]._y = _ymouse;
    _root["MCTween" + count]._rotation = Math.round(Math.random() * 70);
    count++
}

_root.onMouse

```

I would also like to do that when the mouse cursor is still. Is this possible?  
Thanks in advance.
