# Event propagation Problem

**URL:** https://forum.kirupa.com/t/event-propagation-problem/273822
**Category:** flash
**Created:** [October 21, 2008, 11:26am UTC](https://forum.kirupa.com/t/event-propagation-problem/273822 "2008-10-21T11:26:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![adnan794](https://avatars.discourse-cdn.com/v4/letter/a/8edcca/32.png) [@adnan794](https://forum.kirupa.com/u/adnan794)
#### Post date: [October 21, 2008, 11:26am UTC](https://forum.kirupa.com/t/event-propagation-problem/273822/1 "2008-10-21T11:26:10Z")

</div>

Hello

I am having problems with event propagation. I am creating two object and then adding these into a holder sprite and then adding a click event listener to the holder click. So when user clicks any of the two object inside that holder clip onClick handler is called and in that I am calling a function of the traget object

Here is the sample code:

```auto

var array:Array = new Array();
var holder:Sprite = new Sprite;
array.push("Coldplay The Scientist");
array.push("Black and Gold");
array.push("Rihanna Take a bow")
for(var i:int; i < array.length; i++)
{
 var test:Test = new Test();
 test.startTest(array*);
 test.x = i * 200;
 holder.addChild(test);
 holder.addEventListener(MouseEvent.CLICK, onClick);
 addChild(holder);
}
function onClick(event:MouseEvent):void
{
 //trace("Current target" + event.currentTarget);
 trace("target" + event.target.callFunction());

```

This is giving me the following error  
Error #1069: Property video not found on flash.display.sprite and there is no default value.

Can anyone help me with this?

Thanks
