Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Run the code below
2. Click on the "Change State" button
Actual Results:
The buttons all jump to the right
Expected Results:
The buttons should animate to the right
Workaround (if any):
Put the targets list in either of the two Parallel effects
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
width="200" height="600">
<s:layout>
<s:BasicLayout/>
</s:layout>
<s:states>
<s:State name="s1"/>
<s:State name="s2"/>
</s:states>
<s:transitions>
<s:Transition>
<s:Parallel>
<s:Parallel>
<s:Move targets="
"/>
</s:Parallel>
</s:Parallel>
</s:Transition>
</s:transitions>
<s:Button label="Change State" id="tb" click="currentState=(currentState=='s2') ? 's1' : 's2'"/>
<s:Button y="100" id="b1" x.s2="50"/>
<s:Button y="150" id="b2" x.s2="50"/>
<s:Button y="200" id="b3" x.s2="50"/>
<s:Button y="250" id="b4" x.s2="50"/>
<s:Button y="300" id="b5" x.s2="50"/>
<s:Button y="350" id="b6" x.s2="50"/>
<s:Button y="400" id="b7" x.s2="50"/>
<s:Button y="450" id="b8" x.s2="50"/>
</s:Application>