  */
 class StyleEventDispatcher extends EventDispatcher
 {
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  Constructor
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function StyleEventDispatcher(moduleInfo:IModuleInfo)
-    {
-        super();
-
-        moduleInfo.addEventListener(
-            ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true);
-
-        moduleInfo.addEventListener(
-            ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true);
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Event handlers
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    private function moduleInfo_progressHandler(event:ModuleEvent):void
-    {
-        var styleEvent:StyleEvent = new StyleEvent(
-            StyleEvent.PROGRESS, event.bubbles, event.cancelable);
-        styleEvent.bytesLoaded = event.bytesLoaded;
-        styleEvent.bytesTotal = event.bytesTotal;
-        dispatchEvent(styleEvent);
-    }
-
-    /**
-     *  @private
-     */
-    private function moduleInfo_readyHandler(event:ModuleEvent):void
-    {
-        var styleEvent:StyleEvent = new StyleEvent(StyleEvent.COMPLETE);
-        styleEvent.bytesLoaded = event.bytesLoaded;
-        styleEvent.bytesTotal = event.bytesTotal;
-        dispatchEvent(styleEvent);
-    }
+	//--------------------------------------------------------------------------
+	//
+	//  Constructor
+	//
+	//--------------------------------------------------------------------------
+	
+	/**
+	 *  Constructor
+	 *  
+	 *  @langversion 3.0
+	 *  @playerversion Flash 9
+	 *  @playerversion AIR 1.1
+	 *  @productversion Flex 3
+	 */
+	public function StyleEventDispatcher(moduleInfo:IModuleInfo)
+	{
+		super();
+		
+		moduleInfo.addEventListener(
+			ModuleEvent.PROGRESS, moduleInfo_progressHandler, false, 0, true);
+		
+		moduleInfo.addEventListener(
+			ModuleEvent.READY, moduleInfo_readyHandler, false, 0, true);
+	}
+	
+	//--------------------------------------------------------------------------
+	//
+	//  Event handlers
+	//
+	//--------------------------------------------------------------------------
+	
+	/**
+	 *  @private
+	 */
+	private function moduleInfo_progressHandler(event:ModuleEvent):void
+	{
+		var styleEvent:StyleEvent = new StyleEvent(
+			StyleEvent.PROGRESS, event.bubbles, event.cancelable);
+		styleEvent.bytesLoaded = event.bytesLoaded;
+		styleEvent.bytesTotal = event.bytesTotal;
+		dispatchEvent(styleEvent);
+	}
+	
+	/**
+	 *  @private
+	 */
+	private function moduleInfo_readyHandler(event:ModuleEvent):void
+	{
+		var styleEvent:StyleEvent = new StyleEvent(StyleEvent.COMPLETE);
+		styleEvent.bytesLoaded = event.bytesLoaded;
+		styleEvent.bytesTotal = event.bytesTotal;
+		dispatchEvent(styleEvent);
+	}
 }
 
 ////////////////////////////////////////////////////////////////////////////////

 */
class StyleModuleInfo
{
    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------

    /**
     *  Constructor
     *  
     *  @langversion 3.0
     *  @playerversion Flash 9
     *  @playerversion AIR 1.1
     *  @productversion Flex 3
     */
    public function StyleModuleInfo(module:IModuleInfo,
                                    readyHandler:Function,
                                    errorHandler:Function)
    {
        super();

        this.module = module;
        this.readyHandler = readyHandler;
        this.errorHandler = errorHandler;
    }

    //--------------------------------------------------------------------------
    //
    //  Properties
    //
    //--------------------------------------------------------------------------

    //----------------------------------
    //  errorHandler
    //----------------------------------

    /**
     *  @private
     */
    public var errorHandler:Function;
    
    //----------------------------------
    //  readyHandler
    //----------------------------------

    /**
     *  @private
     */
    public var readyHandler:Function;
    
    //----------------------------------
    //  styleModule
    //----------------------------------

    /**
     *  @private
     */
    public var styleModule:IStyleModule;

    //----------------------------------
    //  module
    //----------------------------------

    /**
     *  @private
     */
    public var module:IModuleInfo
}


package mx.styles
{
	
import flash.display.DisplayObject;
import flash.display.LoaderInfo;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
import flash.events.TimerEvent;
import flash.system.ApplicationDomain;
import flash.system.SecurityDomain;
import flash.utils.Timer;
import flash.utils.describeType;

import mx.core.FlexVersion;
