On Tue, Jan 6, 2009 at 1:34 AM, markflex2007 <[email protected]> wrote:
[snip] > I have addEventListener in Mediator page, it works for CASE two but > not work for CASE one. > > it seems dispatchEvent can not work with creationComplete. why? How to > fix it. It works, but your event listener isn't set up at the time the event is dispatched. If you try listening to your own event, you'll see that it works: <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="justLogin()" loginEvent="trace('login event')"> <mx:Metadata> [Event(name="loginEvent", type="flash.events.Event")] </mx:Metadata> ... Manish

