Hi Rajik pasha,

This code is working fine for me...  and here 'Sample' is a mx-titlewindow
container...


var helpWindow:TitleWindow = new TitleWindow();
helpWindow =  PopUpManager.createPopUp(this, Sample, true) as TitleWindow;
PopUpManager.centerPopUp(helpWindow);

//On mouse click outside of the helpWindow
helpWindow.addEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE,

function(event:FlexMouseEvent):void
                                               {

event.target.parent.removeChild(event.target);
                                               });

//Mouse click on the close button of the helpWindow
helpWindow.addEventListener(CloseEvent.CLOSE,

function(event:CloseEvent):void
                                               {

event.target.parent.removeChild(event.target);
                                               });
helpWindow.title = "Help window";
helpWindow.showCloseButton = true;

just check it out.



On Tue, Feb 15, 2011 at 9:29 AM, Manikandan S <[email protected]>wrote:

> Hi rajik pasha,
>
> what is that metricList? it is mx  application or titlewindow container?
>
>
>
>
> On Mon, Feb 14, 2011 at 4:27 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,metricList,
>> 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-not-showing..--tp30920513p30920513.html
>> 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.
>>
>>
>
>
> --
>
> Regards,
> Manikandan.S
>
>


-- 

Regards,
Manikandan.S
http://www.umoldit.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