Because VBox doesn't have uiEvent, your subclass does. Maybe we should be smart about that, but we aren't now
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Rodseth Sent: Thursday, August 21, 2008 4:51 PM To: [email protected] Subject: [flexcoders] this.addEventListener() in MXML I'm puzzled why this is OK: <?xml version="1.0" encoding="utf-8"?> <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " initialize="init()"/> but this is not: <mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " uiEvent="handleUIEvent()"/> <mx:Metadata> [Event(name="uiEvent",type="com.xyz.common.UIEvent")] </mx:Metadata> UIEvent bubbles, and I wish to avoid adding a listener manually to each of the dynamically-added children. I can add another container level or handle the event in the controller, but it seemed like I should be able to add a listener to "this" in MXML.

