# Listener for a movieClip

**URL:** https://forum.kirupa.com/t/listener-for-a-movieclip/138340
**Category:** Uncategorized
**Created:** [February 22, 2005, 12:08am UTC](https://forum.kirupa.com/t/listener-for-a-movieclip/138340 "2005-02-22T00:08:48Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![imenstes](https://avatars.discourse-cdn.com/v4/letter/i/b4bc9f/32.png) [@imenstes](https://forum.kirupa.com/u/imenstes)
#### Post date: [February 22, 2005, 12:08am UTC](https://forum.kirupa.com/t/listener-for-a-movieclip/138340/1 "2005-02-22T00:08:48Z")

</div>

have a quick question is it possible to add a eventListener to a movie clip to listen for mouse rollover?

I have the following code:

Any ideas? Thanks

```
                                                                                                                                                                                                                                                                                                                        Attach Code                                                                                      

```

```auto
 my_mc.onRollOver = function () {
  trace ("onRollOver called");
};

```

* * *

I want something like this to take place, is there any way to make it happen? i notice that it just doesnt trigger. So i dont really know if you cant make the movie clip listen for it. Anyone know a way?

```auto

var mouseListener_obj:Object = new Object();
mouseListener_obj.onRollOver = function() {
	this.tween(["_xscale","_yscale"],[50,50],1,customEasing);
};

glass_mc.addEventListener("onRollOver", mouseListener_obj);

```
