<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2006 Renaun Erickson (http://renaun.com)

Licensed 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.

@ignore
-->
<mx:Application 
    xmlns:renaun="com.renaun.controls.*"
    xmlns:mx="http://www.adobe.com/2006/mxml" 
    creationComplete="init()"
    layout="vertical" viewSourceURL="rolloverimage/index.html">

    <mx:Style>
        Application {
            background-image: "";
            background-color: #EEEEEE;
        }
        .firstRollover {
            upSkin: Embed(source="/assets/arrowGreenUp.png");
            overSkin: Embed(source="/assets/arrowBlueUp.png");
            downSkin: Embed(source="/assets/arrowBlueDown.png");
        }
    </mx:Style>

    <mx:Text text="Rollover Image Example" />
    
    <renaun:RolloverImage 
        styleName="firstRollover"
        click="mx.controls.Alert.show( 'click' );" />

    <renaun:RolloverImage 
        upSkin="@Embed(source='/assets/arrowBlueUp.png')"
        overSkin="@Embed(source='/assets/arrowBlueDown.png')"
        downSkin="@Embed(source='/assets/arrowGreenUp.png')"
        mouseDown="mx.controls.Alert.show( 'mouseDown' );" />
    
    <mx:Spacer height="100%" />
    <mx:Text text="by Renaun Erickson (http://renaun.com)" />
</mx:Application>