listening to events down the display list in children components
问题 I'm creating a swf, that has a parent class and a child class. The parent class has a button, that dispatches a custom event and I want the child class to list for this event, but when I dispatch the event the child class does not hear the event has been dispatched. This is the code that dispatches the event: private function onCTAClicked(e:MouseEvent):void { trace("onCTAClicked"); dispatchEvent(new CTAClickEvent(CTAClickEvent.CTA_CLICK_EVENT,true)); } And the listener is registered like this