its better to swap them coz i believ its already been called when u r
in this method...
popfind.removeEventListener("close", PopCancel_Find);
PopUpManager.removePopUp(IFlexDisplayObject(event.currentTarget));
after this you might do
popfind = null;

this will remove the instance

Anand


On Oct 15, 2:01 pm, raajasoft <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> how to remove the Object Memory(uMasterGridSearch) permanantly....
> when i remove the popup from memory!
> when i run profiler the memory of the object is still there! can any
> one solve or explain the problem...
>
> code below...
>
> public var popfind:uMasterGridSearch;
>
> private function Find_Rec():void
> {
>                 if (popfind==null)
>                 {
>                         popfind = new uMasterGridSearch;
>                 }
>
>                 PopUpManager.addPopUp(popfind, this, true);
>
>                 popfind.title = "Find Screen for Material Master";
>                 popfind.myArray = model.material;
>                 popfind.addEventListener("close", PopCancel_Find,false,
> 0,true);
>                 PopUpManager.centerPopUp(popfind);
>
> }
>
> private function PopCancel_Find(event:Event):void
> {
>                 
> PopUpManager.removePopUp(IFlexDisplayObject(event.currentTarget));
>                 popfind.removeEventListener("close", PopCancel_Find);
>
> }
--~--~---------~--~----~------------~-------~--~----~
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