<?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"
width="200" height="150" viewSourceURL="srcview/index.html">
<fx:Declarations>
<s:Animate id="colorAnimBad" target="{button1}">
<s:SimpleMotionPath property="color"
valueFrom="0xff0000" valueTo="0x0000ff"/>
</s:Animate>
<s:AnimateColor id="colorAnim" target="{button}"
colorFrom="red" colorTo="blue"/>
</fx:Declarations>
<s:Button id="button" label="Color My World"
click="colorAnim.play()"/>
<s:Button id="button1" y="30" label="Color Me Poorly"
click="colorAnimBad.play()"/>
</s:Application>