Rajan

Isn't a bug, Not a Bug the problem is the way of your code implementation
works. The PopUpManager doesn't work to cast itself. Due to the dependecy of
IFlexDisplayObject.


Instead of current code example.

NOT Right way
//action1
if (myPopUp == null) {
myPopUp = PopUpManager.createPopUp(this, MyMxmlComponent, false) as
MyMxmlComponent;
} else {
PopUpManager.addPopUp(myPopUp, this, false);
}

//action1
if (!myPopUp.isPopUp) {
myPopUp = PopUpManager.createPopUp(this, MyMxmlComponent, false) as
MyMxmlComponent;
} else {
PopUpManager.addPopUp(myPopUp, this, false);
}

Remove you should do like

PopUpManager.removePopUp(e.currentTarget.document as IFlexDisplayObject);



regards
Igor Costa

On Tue, Apr 14, 2009 at 6:24 PM, ilikeflex <[email protected]> wrote:

>
>
> Hi
>
> Adobe bug
> http://bugs.adobe.com/jira/browse/SDK-17299
>
> Does anybody has idea when Adobe is going to fix the above bug ot there is
> any workaround.
>
> Thanks
> Rajan
>
> 
>



-- 
----------------------------
Igor Costa
www.igorcosta.com
www.igorcosta.org

Reply via email to