<?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="200" height="200">
<s:states>
<s:State name="s1"/>
<s:State name="s2"/>
</s:states>
<s:transitions>
<s:Transition>
<s:Fade targets="{[button0, button1, button2]}"/>
</s:Transition>
</s:transitions>
<s:Button label="Toggle State"
click="currentState = (currentState=='s1')?'s2':'s1'"/>
<s:Button id="button0" label="Visible" x="100" y="0"
visible="true" visible.s2="false"/>
<s:Button id="button1" label="Alpha" x="100" y="50"
alpha="0" alpha.s2="1"/>
<s:Button id="button2" label="Existence" x="100" y="100"
includeIn="s2"/>
</s:Application>