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 <[email protected]> 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 > > >

