blob: 9e3d9d2c0087a6624fa8a0e8c89d7cbea236db0a [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<mx:VBox xmlns:mx="http://www.adobe.com/2006/mxml" paddingRight="0" paddingLeft="0" paddingTop="0" paddingBottom="0">
<mx:Script>
<![CDATA[
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconUp.gif")]
private var upIcon:Class;
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconOver.gif")]
private var overIcon:Class;
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconDown.gif")]
private var downIcon:Class;
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconSelectedUp.gif")]
private var selectedUpIcon:Class;
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconSelectedOver.gif")]
private var selectedOverIcon:Class;
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconSelectedDown.gif")]
private var selectedDownIcon:Class;
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconDisabled.gif")]
private var disabledIcon:Class;
[Bindable]
[Embed(source="../../../../../Assets/Images/ButtonImages/iconSelectedDisabled.gif")]
private var selectedDisabledIcon:Class;
]]>
</mx:Script>
<mx:states>
<mx:State name="notIconBase">
<mx:RemoveChild target="{baseIcon}"/>
</mx:State>
<mx:State name="up" />
<mx:State name="over" basedOn="notIconBase">
<mx:AddChild creationPolicy="all">
<mx:Image source="{overIcon}" maintainAspectRatio="false" width="100%" height="100%" />
</mx:AddChild>
</mx:State>
<mx:State name="down" basedOn="notIconBase">
<mx:AddChild creationPolicy="all">
<mx:Image source="{downIcon}" maintainAspectRatio="false" width="100%" height="100%" />
</mx:AddChild>
</mx:State>
<mx:State name="disabled" basedOn="notIconBase">
<mx:AddChild creationPolicy="all">
<mx:Image source="{disabledIcon}" maintainAspectRatio="false" width="100%" height="100%" />
</mx:AddChild>
</mx:State>
<mx:State name="selectedUp" basedOn="notIconBase">
<mx:AddChild creationPolicy="all">
<mx:Image source="{selectedUpIcon}" maintainAspectRatio="false" width="100%" height="100%" />
</mx:AddChild>
</mx:State>
<mx:State name="selectedOver" basedOn="notIconBase">
<mx:AddChild creationPolicy="all">
<mx:Image source="{selectedOverIcon}" maintainAspectRatio="false" width="100%" height="100%" />
</mx:AddChild>
</mx:State>
<mx:State name="selectedDown" basedOn="notIconBase">
<mx:AddChild creationPolicy="all">
<mx:Image source="{selectedDownIcon}" maintainAspectRatio="false" width="100%" height="100%" />
</mx:AddChild>
</mx:State>
<mx:State name="selectedDisabled" basedOn="notIconBase">
<mx:AddChild creationPolicy="all">
<mx:Image source="{selectedDisabledIcon}" maintainAspectRatio="false" width="100%" height="100%" />
</mx:AddChild>
</mx:State>
</mx:states>
<mx:Image id="baseIcon" source="{upIcon}" maintainAspectRatio="false" width="100%" height="100%"/>
</mx:VBox>