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
- {
- mx_internal static const VERSION:String = "3.0.0.0";
-
- public static const ERROR:String = "error";
-
- public static const PROGRESS:String = "progress";
-
- public static const READY:String = "ready";
-
- public static const SETUP:String = "setup";
-
- public static const UNLOAD:String = "unload";
-
- public var errorText:String;
-
- private var _module:IModuleInfo;
-
- public function ModuleEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:uint = 0, param5:uint = 0, param6:String = null, param7:IModuleInfo = null)
- {
- super(param1,param2,param3,param4,param5);
- this.errorText = param6;
- this._module = param7;
- }
-
- public function get module() : IModuleInfo
- {
- if(_module)
- {
- return _module;
- }
- return target as IModuleInfo;
- }
-
- override public function clone() : Event
- {
- return new ModuleEvent(type,bubbles,cancelable,bytesLoaded,bytesTotal,errorText,module);
- }
- }
- }
-
-