<?xml version="1.0" encoding="utf-8"?>
<!--
     RobotColors

     Carlos Hernández
     http://www.coconnut.com/blog/ - http://www.caracool.net/
     carlos@caracool.net
-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                xmlns:components="net.caracool.robotcolors.views.components.*"
                xmlns:components1="net.caracool.components.*"
                preloader="net.caracool.robotcolors.views.preload.CustomPreload"
                layout="vertical" width="100%" height="100%"
                preinitialize="preInitHandler(event)"
                horizontalScrollPolicy="off" viewSourceURL="srcview/index.html">

    <mx:Style source="estilos.css"/>

    <mx:Script>
        <![CDATA[
            import mx.events.FlexEvent;
            import net.caracool.robotcolors.ColorsGalleryContext;

            private var colorsGalleryContext:ColorsGalleryContext;

            protected function preInitHandler(event:FlexEvent):void
            {
                this.colorsGalleryContext=new ColorsGalleryContext(this);
            }
        ]]>
    </mx:Script>

    <mx:HBox width="995" verticalAlign="middle" >
        <components1:SmoothImage source="assets/coconnut_200x50.png" scaleX=".9" scaleY=".9" />
        <mx:Label text="Robotlegs Kuler Gallery" fontFamily="Verdana" fontWeight="bold" fontSize="20" color="0x333333" height="28" />
        <mx:Spacer width="100%" />
        <components:SearchView />    
    </mx:HBox>
    
    <components:ColorsGalleryView id="galleryView" width="995" height="100%"/>
</mx:Application>