Hi, I tested a couple of things and tried 2 hacks. This might be a bug.
The real problem is that when the WipeLeft effect finishes, the visible property on the VBox is still true (I debugged this). Now, the bug is, I tried to trick that with dispatching a FlexEvent.SHOW event from the VBox in the effect end handler. This did not work, so there is something in the effect classes specifically the WipeRight that is not reacting the way you would expect. My advice is try a different approach, or effect combo. :) Mike On Fri, Sep 19, 2008 at 12:27 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have this box which I want to wipe left to hide and then wipe right > to show. > It hides all right and then it called the effectEndHandler, but > mainImgBox.visible = true; does not do anything. There is no wipe right > and the box does not appear. what am I doing wrong ? > > > <mx:VBox id="mainImgBox" hideEffect="{wipeLeft}" showEffect="{wipeRight}"> > <mx:Image id="mainImg" > source="@Embed(source='../media/jbh.jpg')" > /> > </mx:VBox> > > <mx:WipeLeft id="wipeLeft" duration="1000" > effectEnd="effectEndHandler()" /> > <mx:WipeRight id="wipeRight" duration="1000"/> > > private function effectEndHandler():void { > > mainImgBox.visible = true; > } > > -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then by 'asking the question'.