<?xml version="1.0" encoding="utf-8"?>
<!--
 PureMVC Flex/WebORB Demo – Login
 Copyright (c) 2007 Jens Krause <jens.krause@puremvc.org> <www.websector.de>
 Your reuse is governed by the Creative Commons Attribution 3.0 License
 
-->
<mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:view="org.puremvc.as3.demos.flex.weborb.login.view.components.*" 
    xmlns:reflector="com.rictus.reflector.*" 
    pageTitle="PureMVC Flex/WebORB Demo – Login"
    backgroundColor="#000000"
    creationComplete="facade.startup(this);"  
     viewSourceURL="srcview/index.html">

    <mx:Style>
        global
        {
            font-family: Verdana;
            font-weight: normal;    
        }    
        Application
        {    
            horizontalAlign: center;
            verticalAlign: top;
            theme-color: #401229;
        }
    </mx:Style>
    
    <mx:Script>
        <![CDATA[
        
            import org.puremvc.as3.demos.flex.weborb.login.ApplicationFacade;
            //
            // first initializing of the facade
            private var facade: ApplicationFacade = ApplicationFacade.getInstance();            
        
        ]]>
    </mx:Script>

    <!-- 
        Viewstack to show loggin and loggedin screen        
    -->
    <mx:ViewStack id="appView">
        <view:LoginPanel id="login" />        
        <view:LoggedInBox id="loggedIn" />
    </mx:ViewStack>
    
     <!-- 
        Just a reflector.    
    -->   
    <reflector:Reflector id="reflector"
        target="{appView}" 
        alpha=".7" 
        falloff=".8" />
    
    <!-- 
        An effect to show an error trying to log in.
    -->
    <mx:Move id="faultEffect"
        target="{appView}"
        repeatCount="4" duration="50" 
        xFrom="{appView.x - 30}" xTo="{appView.x}" /> 
    
</mx:Application>