PERFECT! Thanks a lot.
I thought I understood why I was having a problem, and shuffled the calls around in my close handler without success, but using the effectEnd works perfectly. As you can see, I have a lot to learn about effects. Tracy Spratt, Lariat Services, development services available _____ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Harish Sivaramakrishnan Sent: Wednesday, April 29, 2009 4:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Effect works on addPopUp, but not on removePopUp may be you can try listening to the effectEnd event of the customPopClose and then remove the popUp. On Wed, Apr 29, 2009 at 12:58 AM, Tracy Spratt <tr...@nts3rd. <mailto:tr...@nts3rd.com> com> wrote: I want to apply a resize and move effect to a popup component, and "reverse" the effect when the popup is closed. The effect works when I open the popup but not when I remove it. Below are the snippets of relevant code. Any suggestions will be welcome. private function showCCV():void { _twCCV = new ImageMapCCV(); _twCCV.height = imgCCV.height; _twCCV.x = 190 _twCCV.y = 455; _twCCV.addEventListener("rollOut",onRollOut); PopUpManager.addPopUp(_twCCV,this,false); customPop.end(); ////WORKS FINE customPop.play(); }//showCCV private function onRollOut(event:Event):void { customPopClose.end(); ////DOES NOT WORK customPopClose.play(); PopUpManager.removePopUp(_twCCV); }//onRollOut . <mx:Parallel id="customPop" target="{_twCCV}"> <mx:Resize duration="1000" heightTo="380" /> <mx:Move duration="1000" xTo="160" yTo="300" /> </mx:Parallel> <mx:Parallel id="customPopClose" target="{_twCCV}"> <mx:Resize duration="1000" heightTo="100" /> <mx:Move duration="1000" xTo="190" yTo="455" /> </mx:Parallel> Tracy Spratt, Lariat Services, development services available