# Problem with Event Propagation

**URL:** <https://forum.kirupa.com/t/problem-with-event-propagation/294218>\
**Category:** flash\
**Created:** [August 11, 2009, 12:42am UTC](https://forum.kirupa.com/t/problem-with-event-propagation/294218 "2009-08-11T00:42:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodos](https://avatars.discourse-cdn.com/v4/letter/k/848f3c/32.png) [@kodos](https://forum.kirupa.com/u/kodos)\
**Post date:** [August 11, 2009, 12:42am UTC](https://forum.kirupa.com/t/problem-with-event-propagation/294218/1 "2009-08-11T00:42:29Z")

</div>

I am having a problem using Event Propagation. I have a movieclip with a Mouse Over and Mouse Out function attached to it. The visual result I am seeking is this:

[http://www.garrigan.net/Question/](http://www.garrigan.net/Question/)

This SWF was created by using twelve instances of a movieclip and me writing twelve separate functions and event listeners for each instance. I would like to create this same effect with over a hundred instances of this movieclip so writing that much code is inefficient.

Instead I filled another movieclip with instances of the one I want (mc\_light) and then I wrote this action script;

* * *

function lightOver(evt:MouseEvent):void{  
evt.target.gotoAndPlay(“over”);  
}

function lightOut(evt:MouseEvent):void{  
evt.target.gotoAndPlay(“out”);  
}

bars\_mc.addEventListener(MouseEvent.MOUSE\_OVER,lig htOver);  
bars\_mc.addEventListener(MouseEvent.MOUSE\_OUT,ligh tOut);

* * *

It’s not working. I have tried several variations but none work. This seems like a fairly simple procedure so I am a little perplexed. The movieclip mc\_light has its own timeline with two labels, “over” and “out”.

This directory contains two FLA’s:

[http://www.garrigan.net/Question/fla/](http://www.garrigan.net/Question/fla/)

The one named “bars2.fla” is the one I am trying to get to work.

What am I doing wrong? Is what I want to do even possible?

Thanks in advance for any input!
