Is the whole parent hierarchy DisplayObjects? Bubbling will only go through UI objects, if you had something that didn't extend DisplayObject in there it won't bubble up (all of the Flex visual components are DisplayObjects)
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, November 27, 2006 5:39 PM To: [email protected] Subject: [flexcoders] Event Propogation - how to bubble up through components?? I'm using bubbling, or at least i think i am to capture an event... I've extended the event class to make my own event mechanism. the events are being dispatched, however the problem is, that I'm adding an event listener to my custom mxml component to receive the events and nothing happens. I've probably got something backwards... Isn't there a way to listen to events from the parent document? Doesn't bubbling set to true allow the event to be captured by any component in the order that they are created? my code is as follows: var evt:MeEvent = new MeEvent(MeEvent.REMOTE,true); dispatchEvent(evt); ----------------------------------- package com.me { import flash.events.Event; public class MeEvent extends Event { public static const REMOTE:String = "remote"; public var realTarget:*; public function MeEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) { super(type, bubbles, cancelable); } } } -------------------------------------- And inside my custom component this is the event listener. private function init():void{ this.addEventListener(MeEvent.REMOTE, handleEvent); } Thanks for your time, Patrick

