# eventListener simple problem

**URL:** <https://forum.kirupa.com/t/eventlistener-simple-problem/253273>\
**Category:** flash\
**Created:** [February 28, 2008, 7:19pm UTC](https://forum.kirupa.com/t/eventlistener-simple-problem/253273 "2008-02-28T19:19:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mleep](https://avatars.discourse-cdn.com/v4/letter/m/ea5d25/32.png) [@mleep](https://forum.kirupa.com/u/mleep)\
**Post date:** [February 28, 2008, 7:19pm UTC](https://forum.kirupa.com/t/eventlistener-simple-problem/253273/1 "2008-02-28T19:19:44Z")

</div>

im trying to get movieclips that were made with as2 to handle eventListeners with no luck. no compile errors. i see the image loaded in the swf, but the “trace” call i put in the listener never happens. heres my code . . .

```auto

imageHolder.createEmptyMovieClip( "mc_Games", imageHolder.getNextHighestDepth() );
loadMovie( "game.png", imageHolder.mc_Games );
        
var eventListener:Object = new Object();
eventListener.onMouseOver = function(evt){
        trace(evt.name);
}
imageHolder.mc_Games.addEventListener("onMouseOver", eventListener);

```
