home *** CD-ROM | disk | FTP | other *** search
- package mx.events
- {
- import flash.events.Event;
- import flash.events.ProgressEvent;
- import mx.core.mx_internal;
- import mx.modules.IModuleInfo;
-
- use namespace mx_internal;
-
- public class ModuleEvent extends ProgressEvent
- {
-
- public static var READY:String = "ready";
-
- public static var ERROR:String = "error";
-
- public static var PROGRESS:String = "progress";
-
- mx_internal static const VERSION:String = "2.0.1.0";
-
- public static var SETUP:String = "setup";
-
- public static var UNLOAD:String = "unload";
-
-
- public var errorText:String;
-
- public function ModuleEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:uint = 0, param5:uint = 0, param6:String = null)
- {
- super(param1,param2,param3,param4,param5);
- this.errorText = param6;
- }
-
- public function get module() : IModuleInfo
- {
- return target as IModuleInfo;
- }
-
- override public function clone() : Event
- {
- return new ModuleEvent(type,bubbles,cancelable,bytesLoaded,bytesTotal,errorText);
- }
- }
- }
-