Hello Jason, Here is the code sample (the “not working” version,
using the setStyleAction). I’ve found out that the problem is related
with the Fade Effect before the Move Effect. If you comment the Fade Effect it
all works. <?xml version="1.0" encoding="utf-8"?> <mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:states> <mx:State
name="OpenState"> <mx:SetStyle
target="{PanelRight}" name="horizontalCenter"
value="130"/> <mx:SetStyle
target="{PanelLeft}" name="horizontalCenter"
value="-117"/> </mx:State> </mx:states> <mx:transitions> <!--
Abertura de Painel de Logon --> <mx:Transition
id="openLoginPanel" fromState="*"
toState="OpenState" > <mx:Sequence> <mx:Parallel> <mx:Fade
alphaFrom="0.4" alphaTo="1"
target="{PanelLeft}"/> <mx:Fade
alphaFrom="0" alphaTo="1"
target="{PanelRight}"/> </mx:Parallel> <mx:Parallel> <mx:Move
duration="1000" target="{PanelLeft}" /> <mx:Move
duration="1000" target="{PanelRight}" /> </mx:Parallel> <mx:SetStyleAction
relevantStyles="horizontalCenter" filter="move"
target="{PanelLeft}"/> </mx:Sequence> </mx:Transition> </mx:transitions> <mx:Panel id="PanelRight"
width="294" height="148" horizontalCenter="-18"
verticalCenter="0"/> <mx:Panel id="PanelLeft"
width="240" height="154" horizontalCenter="-46"
verticalCenter="0"> <mx:Button label="Change
State" click="currentState = 'OpenState'"/> </mx:Panel> </mx:Application> Best regrads, Nelson
Batista From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jason Szeto Post some
code so we can take a look. Jason From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nelson
Batista Hello Jason, I’ve tested in the final version
of FLEX 2, and the bug still persist. Best regards, Nelson Batista From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason
Szeto This is a bug in Flex 2b3. You’ll
have to wait for the release to get the fix. Jason From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nelsoncostabatista Hello all, -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|