<?xml version="1.0" encoding="utf-8"?>
<!--
 PureMVC AS3 Demo - Flex Application Skeleton 
 Copyright (c) 2007 Daniele Ugoletti <daniele.ugoletti@puremvc.org>
 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.appskeleton.view.components.*"
    xmlns:mvc="org.puremvc.as3.demos.flex.appskeleton.*"
    layout="absolute"
    width="900" height="600" 
    verticalGap="0"
    horizontalGap="0"
    creationComplete="facade.startup(this);" viewSourceURL="srcview/index.html">
    <mx:Script>
        <![CDATA[
        import mx.effects.easing.Exponential;
        import org.puremvc.as3.demos.flex.appskeleton.*;
        
        private var facade:ApplicationFacade = ApplicationFacade.getInstance( ApplicationFacade.NAME );
        ]]>
    </mx:Script>
    <mx:Move id="slideInEffect" yFrom="5000" easingFunction="{Exponential.easeOut}" duration="1300"/>
    <mx:Fade id="fadeOut" duration="1000" alphaFrom="1.0" alphaTo="0.0"/>
    <mx:Fade id="fadeIn" duration="1000" alphaFrom="0.0" alphaTo="1.0"/>
    
    <mx:Style source="assets/main.css" />
    <mx:Canvas id="mainViewStack" left="0" top="0" right="0" bottom="0" >
        <mx:ViewStack id="vwStack" left="0" top="0" right="0" bottom="0" resizeToContent="false" creationPolicy="auto">
            <mx:VBox />
            <view:SplashScreen id="splashScreen" showEffect="{slideInEffect}" hideEffect="{fadeOut}" />
            <view:MainScreen id="mainScreen" showEffect="{fadeIn}" />
        </mx:ViewStack>
    </mx:Canvas>
</mx:Application>