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
Dep. Informática – Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 307 746 . Fax (+351) 213 540 370

[EMAIL PROTECTED]

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Szeto
Sent: quarta-feira, 28 de Junho de 2006 22:51
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

 

Post some code so we can take a look.

 

Jason

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nelson Batista
Sent: Wednesday, June 28, 2006 8:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

 

Hello Jason,

 

I’ve tested in the final version of FLEX 2, and the bug still persist.

 

Best regards,

Nelson Batista
Dep. Informática – Área de Desenvolvimento
Cofina media

Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL
Tel (+351) 213 307 746 . Fax (+351) 213 540 370

[EMAIL PROTECTED]

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Szeto
Sent: quinta-feira, 22 de Junho de 2006 22:12
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Transitions - How to apply movement to SetStyleAction(horizontalCenter proprety)

 

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
Sent: Thursday, June 22, 2006 8:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Transitions – How to apply movement to SetStyleAction(horizontalCenter proprety)

 

Hello all,

I'm defining a few states in my application and transitions between
these states.
In the beginning of the design development I was using the property
"x" for a panel, and in the transition I defined:
<mx:Move easingFunction="{Circular.easeOut}" duration="1000"
target="{myDataPanel}"/>
And the movement between states run well.

Now I need to change the property "x" for the style
"horizontalCenter", in order to get in my main application the correct
placement of the panel.
Now the panel movement doesn't work. I even forced the
"<mx:SetStyleAction relevantStyles="horizontalCenter" filter="move"
target="{ myDataPanel }"/>" in my transition, but with no luck.

Best regards,
Nelson Batista

__._,_.___

--
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
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to