<?xml version="1.0" encoding="utf-8"?>
<FxApplication xmlns="http://ns.adobe.com/mxml/2009" backgroundColor="#000000" xmlns:local="*" viewSourceURL="srcview/index.html">
<Script>
<![CDATA[
import mx.skins.spark.FxApplicationSkin;
[Bindable]
public var ratio1 : String = "0";
[Bindable]
public var ratio2 : String = "1";
[Bindable]
public var color1 : Number = 0x888888;
[Bindable]
public var color2 : Number = 0x111111;
protected function gradientBackground_clickHandler(event:MouseEvent):void
{
this.setStyle("skinClass", GradientBackgroundSkin );
}
protected function animatedBackground_clickHandler(event:MouseEvent):void
{
this.setStyle("skinClass", AnimatedBackgroundSkin );
}
protected function ellipseBackground_clickHandler(event:MouseEvent):void
{
this.setStyle("skinClass", EllipseBackgroundSkin );
}
protected function metalBackground_clickHandler(event:MouseEvent):void
{
this.setStyle("skinClass", MetalBackgroundSkin );
}
protected function radiobutton1_clickHandler(event:MouseEvent):void
{
this.setStyle("skinClass", FxApplicationSkin );
}
]]>
</Script>
<layout>
<BasicLayout/>
</layout>
<Panel width="300" height="200" id="selectorPanel" verticalCenter="0" horizontalCenter="0" title="Select Background Type">
<RadioButtonGroup id="selectorGroup"/>
<RadioButton group="{selectorGroup}" label="Standard Background" click="radiobutton1_clickHandler(event)" selected="true"/>
<RadioButton group="{selectorGroup}" label="Gradient Background" click="gradientBackground_clickHandler(event)"/>
<RadioButton group="{selectorGroup}" label="Animated Color Gradient Background" click="animatedBackground_clickHandler(event)"/>
<RadioButton group="{selectorGroup}" label="Gradient Ellipse Background" click="ellipseBackground_clickHandler(event)"/>
<RadioButton group="{selectorGroup}" label="Brushed Metal Background" click="metalBackground_clickHandler(event)"/>
</Panel>
<local:Reflector target="{selectorPanel}" width="300" height="200"/>
</FxApplication>