The reason why I used outerDocument is I already defined my popupManager in
the same mxml.So rather than creating a new one, I am invoking the already
created popup Manager.



On Mon, Oct 13, 2008 at 5:57 PM, girish kumar <[EMAIL PROTECTED]> wrote:

> hi Arun,
>
> why r u using OuterDocument here?
> btnEdit.addEventListener(MouseEvent.CLICK, function(e:MouseEvent):void{
> var comp:component = new component ();
> PopUpManager.addPopUp(comp,this,false);
> PopUpManager.centerPopUp(comp);
> });
>
> this should work fine for u..
>
>
>
>
> On Mon, Oct 13, 2008 at 3:07 PM, Arun <[EMAIL PROTECTED]> wrote:
>
>>
>> Hello,
>>
>> I have a button and I am calling a method that will invoke a popup.
>> The issue I am facing here is I need to click the button twice to
>> invoke the popup, even though I am calling the method in the click
>> event of the button.
>>
>> My button click function got this statement to invoke the popup
>>
>> btnEdit.addEventListener(MouseEvent.CLICK,outerDocument.showPopUp);
>>
>> How can I resolve this issue?
>>
>>
>>
>
> >
>

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