I've been trying to figure out this problem for a few hours now and
I'm not getting anywhere so I figured it's time to ask :-)

I have a simple panel onscreen but with visible=false. When a button
is clicked I want to move the panel from an off screen position to its
current position (or vice versa).

The problem is that sometimes when the panel is being moved on screen
it flashes briefly in the ending (current) position before the
animation starts. It should be hidden until the animation starts at
the off screen position. It's like the effect displays the panel,
moves it off screen, and then animates it to the ending on screen
position. 

Is there any way to prevent this occasional visibility "flash" from
occurring when the "move_on" animation begins?

Here are the relevant bits of code:

<mx:Move id="move_on" xFrom="-200" />   
<mx:Move id="move_off" xTo="-200" />

<mx:Panel id="panel1" visible="false" showEffect="{move_on}"
hideEffect="{move_off}" />

<mx:Button label="+" width="20" click="panel1.visible=true;" />
<mx:Button label="-" width="20" click="panel1.visible=false;" />

Thanks for any help!

Paul



Reply via email to