<?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="250">
<s:states>
<s:State name="s1"/>
<s:State name="s2"/>
</s:states>
<s:transitions>
<s:Transition>
<s:Parallel target="{button1}">
<s:Move autoCenterTransform="true"/>
<s:Rotate autoCenterTransform="true"/>
<s:Scale autoCenterTransform="true"/>
</s:Parallel>
</s:Transition>
</s:transitions>
<fx:Declarations>
<s:Parallel id="transformer" target="{button}">
<s:Move xTo="300" yTo="100" autoCenterTransform="true"/>
<s:Rotate angleBy="90" autoCenterTransform="true"/>
<s:Scale scaleXTo="2" scaleYTo="2" autoCenterTransform="true"/>
</s:Parallel>
</fx:Declarations>
<s:Button id="button" label="Transform Me" width="100"
click="transformer.play()"/>
<s:Button id="button1" label="Transition Me" width="100"
x.s2="200" y="30" y.s2="100" rotation.s2="180" scaleX.s2="2" scaleY.s2="2"
click="currentState = (currentState == 's1') ? 's2' : 's1'"/>
</s:Application>