# Send event to child

**URL:** <https://forum.kirupa.com/t/send-event-to-child/239400>\
**Category:** flash\
**Created:** [September 21, 2007, 10:46am UTC](https://forum.kirupa.com/t/send-event-to-child/239400 "2007-09-21T10:46:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bosaxi](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@bosaxi](https://forum.kirupa.com/u/bosaxi)\
**Post date:** [September 21, 2007, 10:46am UTC](https://forum.kirupa.com/t/send-event-to-child/239400/1 "2007-09-21T10:46:37Z")

</div>

Hello Everyone,

I have a little problem with Event class…

First of all here is the code;

```auto

package {
    import flash.display.Sprite;
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    import adobe.utils.CustomActions;
    import flash.events.Event;

    public class appEventDene extends MovieClip
    {
        var a:MovieClip = new MovieClip();
        var b:MovieClip = new MovieClip();
        
        var e:Event = new Event("changeLang", true);
        
        function appEventDene()
        {
            trace("started!");
            init();
        }
        
        function init():void
        {
            btn2.addEventListener(MouseEvent.CLICK, btnClick);
            
            addEventListener("changeLang", evtChangeLanguage);
                a.addEventListener("changeLang", aEventChange);
                    b.addEventListener("changeLang", bEventChange);

            addChild(a);
                a.addChild(b);
        }

        function evtChangeLanguage(e:Event):void
        {
            trace("appEvent: "+e);
        }

        function aEventChange(e:Event):void
        {
            trace("aEvent: "+e);
        }
        function bEventChange(e:Event):void
        {
            trace("bEvent: "+e);
        }

        function fwd(event:CustomEvent){
            getChildAt(0).dispatchEvent(event);
        }
        
        function btnClick(e:MouseEvent)
        {
            dispatchEvent(new Event("changeLang", true));
        }
    }
}

```

As you see i’ve created an instance of Event with new type.

And after that i’ve created several mcs.

Here is the question:  
When i dispatch an event from application level, childs do not listen events? Why is that happening?

Thanks!  
Alper
