Rajan

Everytime when I use popUp to free memory I put the target displayobject to
a null result after I call remove popup.


Regards
Igor

On Wed, Apr 15, 2009 at 11:20 PM, Rajan Jain <[email protected]> wrote:

>
>
>  Hi Igor
>
> Thanks for your help.
>
> Actually i have a pop up in which i am using lot of components like
> Checkbox,Tree control, couple of text controls and few others. Everytime i
> create popup the new instance of the components are created. I wanted that
> if i can remove these components from memory then i would be great.
>
> Hope the statement below helps.
>  PopUpManager. removePopUp( e.currentTarget. document as
> IFlexDisplayObject) ;
>
> thanks
> Rajan
>
>  ------------------------------
> *From:* Igor Costa <[email protected]>
> *To:* [email protected]
> *Sent:* Tuesday, April 14, 2009 7:54:51 PM
> *Subject:* Re: [flexcoders] Adobe Bug |
> http://bugs.adobe.com/jira/browse/SDK-17299
>
>    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 <ilikef...@yahoo. 
> com<[email protected]>
> > wrote:
>
>>
>>
>> Hi
>>
>> Adobe bug
>> http://bugs. adobe.com/ jira/browse/ 
>> SDK-17299<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 <http://www.igorcosta.com/>
> www.igorcosta. org <http://www.igorcosta.org/>
>
>
>  
>



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

Reply via email to