myTitleWindow = new TitleWindow();
           myTitleWindow.showCloseButton=true;
         *** myTitleWindow.addEventListener(CloseEvent.CLOSE,
closeTitleWindow);
          PopUpManager.addPopUp(myTitleWindow, this, true);

public function closeTitleWindow(event:CloseEvent):void {
                PopUpManager.removePopUp(event.currentTarget.parent);
            }
Regards
Manish


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.

Reply via email to