<?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"
viewSourceURL="srcview/index.html"
width="400" height="200">
<s:states>
<s:State name="s1"/>
<s:State name="s2"/>
</s:states>
<s:transitions>
<s:Transition>
<s:Parallel>
<s:Parallel target="{button1}">
<s:Move/>
<s:Rotate/>
</s:Parallel>
<s:Parallel targets="{[button2,button3]}">
<s:Move autoCenterTransform="true"/>
<s:Rotate autoCenterTransform="true"/>
</s:Parallel>
</s:Parallel>
</s:Transition>
</s:transitions>
<s:Button id="button" label="Toggle State"
click="currentState = (currentState == 's1') ? 's2' : 's1'"/>
<s:Button id="button1" label="Button1" width="100" height="50"
x="50" y="50" rotation.s2="90"/>
<s:Button id="button2" label="Button2" width="100" height="50"
x="150" y="50" rotation.s2="90"/>
<s:Button id="button3" label="Button3" width="100" height="50"
x="250" x.s2="325" y="50" y.s2="25" rotation.s2="90"/>
</s:Application>