# How to detect a mouseOver a movieclip?

**URL:** <https://forum.kirupa.com/t/how-to-detect-a-mouseover-a-movieclip/120263>\
**Category:** Uncategorized\
**Created:** [August 22, 2004, 7:45pm UTC](https://forum.kirupa.com/t/how-to-detect-a-mouseover-a-movieclip/120263 "2004-08-22T19:45:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![endy](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@endy](https://forum.kirupa.com/u/endy)\
**Post date:** [August 22, 2004, 7:45pm UTC](https://forum.kirupa.com/t/how-to-detect-a-mouseover-a-movieclip/120263/1 "2004-08-22T19:45:17Z")

</div>

I want to have an event with a movieclip like with a button…  
“on (mouseOver) {  
whatever };”  
how can i detect the mouse over the movie clip without it being a button?

thanks for your comments.

---

<div class="post-metadata">

**Author:** ![hga77](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@hga77](https://forum.kirupa.com/u/hga77)\
**Post date:** [August 22, 2004, 7:49pm UTC](https://forum.kirupa.com/t/how-to-detect-a-mouseover-a-movieclip/120263/2 "2004-08-22T19:49:18Z")

</div>

well lets say you have a movie clip on the stage with the instance name “myMC”.

You can use the following AS to detect a rollOver:

```auto
myMC.onRollOver = function()
{
    //whatever you want to happen when you roll over "myMC" movie clip
}

```

---

<div class="post-metadata">

**Author:** ![andr\_in](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/andr_in/32/37_2.png) [@andr\_in](https://forum.kirupa.com/u/andr_in)\
**Post date:** [August 22, 2004, 8:08pm UTC](https://forum.kirupa.com/t/how-to-detect-a-mouseover-a-movieclip/120263/3 "2004-08-22T20:08:57Z")

</div>

with mx2004 u can simply do on(rollOver) {} on the mc as if it was a button

---

<div class="post-metadata">

**Author:** ![hga77](https://avatars.discourse-cdn.com/v4/letter/h/4bbf92/32.png) [@hga77](https://forum.kirupa.com/u/hga77)\
**Post date:** [August 22, 2004, 8:15pm UTC](https://forum.kirupa.com/t/how-to-detect-a-mouseover-a-movieclip/120263/4 "2004-08-22T20:15:39Z")

</div>

you can do that too 😉

---

<div class="post-metadata">

**Author:** ![endy](https://avatars.discourse-cdn.com/v4/letter/e/f19dbf/32.png) [@endy](https://forum.kirupa.com/u/endy)\
**Post date:** [August 22, 2004, 8:57pm UTC](https://forum.kirupa.com/t/how-to-detect-a-mouseover-a-movieclip/120263/5 "2004-08-22T20:57:13Z")

</div>

thanks for the help 🙂 much love to these forums.
