There will be a component, which will be based on TitleWindow........... right?
So, in that Component you can call PopUpManager.removePopUp(this); On Mon, Aug 23, 2010 at 2:21 PM, NavaneethaNagapoori <[email protected]>wrote: > > *TypeError:* > Error #1034: Type Coercion failed: cannot convert > mx.events::closeev...@3103741 to flash.events.MouseEvent. > *Code:* > > myTitleWindow = new TitleWindow(); > myTitleWindow.showCloseButton=true; > *** myTitleWindow.addEventListener(MouseEvent.click, > closeTitleWindow); > PopUpManager.addPopUp(myTitleWindow, this, true); > > public function closeTitleWindow(event:MouseEvent):void { > PopUpManager.removePopUp(event.currentTarget.parent); > } > > is my coding for closing title window is right? > > please help me > > -- > Thanks & Regards > Navaneetha > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<flex_india%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

