I seem to remember seeing a post by Alex Harui that said mouse click events have bubbling set to true by default. You code will work if you set bubbling to true (I have tested it).
--- In [email protected], "markflex2007" <markflex2...@...> wrote: > > But it works with button click event like following. > > > <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" > > <mx:Metadata> > [Event(name="loginEvent", type="flash.events.Event")] > </mx:Metadata> > <mx:Script> > <![CDATA[ > > > private function justLogin():void{ > > dispatchEvent(new Event("loginEvent", false)); > > } > ]]> > </mx:Script> > > <mx:Button x="112" y="141" label="Login" click="justLogin()"/> > > </mx:Canvas> > > I need it works with creationComplete > > Thanks > > Mark >

