# Onmousenotmove

**URL:** <https://forum.kirupa.com/t/onmousenotmove/207572>\
**Category:** Uncategorized\
**Created:** [November 19, 2006, 11:16am UTC](https://forum.kirupa.com/t/onmousenotmove/207572 "2006-11-19T11:16:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fleasy](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@fleasy](https://forum.kirupa.com/u/fleasy)\
**Post date:** [November 19, 2006, 11:16am UTC](https://forum.kirupa.com/t/onmousenotmove/207572/1 "2006-11-19T11:16:31Z")

</div>

Hello i’ve this code:

```auto
vierkantje.onMouseMove = function() {
    rondje.gotoAndPlay(2);
}

```

vierkantje and rondje are instance names of MC’s. The script do it good, if i move my mouse in vierkantje, the second frame of rondje comes. But, is there a function that says fi the mouse not move? Something like this:

```auto
vierkantje.onMouseNotMove = function(){
rondje.gotoAndPlay(2);
}

```

?
