  */
 class StyleModuleInfo
 {
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
+	//--------------------------------------------------------------------------
+	//
+	//  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
+}
 
-    /**
-     *  Constructor
-     *  
-     *  @langversion 3.0
-     *  @playerversion Flash 9
-     *  @playerversion AIR 1.1
-     *  @productversion Flex 3
-     */
-    public function StyleModuleInfo(module:IModuleInfo,
-                                    readyHandler:Function,
-                                    errorHandler:Function)
-    {
-        super();
+class CSSClass
+{
+	public static const CSSSelector:int = 0;
+	public static const CSSCondition:int = 1;
+	public static const CSSStyleDeclaration:int = 2;
+}
 
-        this.module = module;
-        this.readyHandler = readyHandler;
-        this.errorHandler = errorHandler;
-    }
+class CSSFactory
+{
+	public static const DefaultFactory:int = 0;
+	public static const Factory:int = 1;
+	public static const Override:int = 2;
+}
 
-    //--------------------------------------------------------------------------
-    //
-    //  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
+class CSSDataType
+{
+	public static const Native:int = 0;
+	public static const Definition:int = 1;
 }

 */
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);
    }
}

////////////////////////////////////////////////////////////////////////////////


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;
