Hi,

To display the close button in popup , set the showCloseButton
property to true before adding it to popup. refer below lines of code:

var helpWindow:TitleWindow = new TitleWindow();
 helpWindow.showCloseButton=true;
PopUpManager.addPopUp(helpWindow,this,true);
PopUpManager.centerPopUp(helpWindow);

Thanks!

On Feb 14, 3:57 pm, RAJIK PASHA <[email protected]> wrote:
> Hi All ,
>
>    In my application , i created a popup like:
>
>    var helpWindow:TitleWindow =
> TitleWindow(PopUpManager.centerPopUp(PopUpManager.createPopUp(this,metricLi­st,
> true)));
>
>      helpWindow.showCloseButton=true;
>         helpWindow.addEventListener(CloseEvent.CLOSE,
> function(event:CloseEvent):void
>         {
>                         event.target.parent.removeChild(event.target);
>                 });
>
> But here this is not showing "Close Button".... i dont know why.... plzz
> help...
>
> Thanks in Advance.....
> --
> View this message in 
> context:http://old.nabble.com/Center-PopUp-with-Close-Button--Close-button-no...
> Sent from the Flex India mailing list archive at Nabble.com.

-- 
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