<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://ns.adobe.com/mxml/2009"
xmlns:mx="library:adobe/flex/halo"
layout="flex.layout.BasicLayout"
viewSourceURL="srcview/index.html">
<states>
<State name="state1" />
<State name="state2" />
<State name="state3" />
</states>
<mx:HBox left="10" top="10">
<Button label="State 1 (SolidColor)"
click="currentState='state1';" />
<Button label="State 2 (LinearGradient)"
click="currentState='state2';" />
<Button label="State 3 (BitmpFill)"
click="currentState='state3';" />
</mx:HBox>
<Rect id="rect"
width="100"
height="100"
horizontalCenter="0"
verticalCenter="0">
<fill.state1>
<SolidColor color="red" />
</fill.state1>
<fill.state2>
<LinearGradient>
<GradientEntry color="red" />
<GradientEntry color="haloOrange" />
<GradientEntry color="yellow" />
<GradientEntry color="haloGreen" />
<GradientEntry color="haloBlue" />
</LinearGradient>
</fill.state2>
<fill.state3>
<BitmapFill source="@Embed('flex_logo.jpg')" />
</fill.state3>
</Rect>
</Application>