Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package §_-1CT§
- {
- import §_-1O0§.EventDispatcherWrapper;
- import §_-3VE§.§_-1I6§;
- import flash.events.Event;
- import flash.events.HTTPStatusEvent;
- class §_-0qO§ extends EventDispatcherWrapper implements §_-1I6§
- {
- public static const NONE:uint = 0;
- public static const IO_ERROR:uint = 1;
- public static const SECURITY_ERROR:uint = 2;
- protected var §_-21v§:int = 0;
- protected var §_-23Y§:int = 0;
- protected var §_-LA§:int = 2;
- protected var §_-26I§:uint = 0;
- function §_-0qO§()
- {
- super();
- }
- public function get errorCode() : uint
- {
- return §_-26I§;
- }
- protected function loadEventHandler(param1:Event) : void
- {
- var _loc2_:* = param1.type;
- if("httpStatus" !== _loc2_)
- {
- if("complete" !== _loc2_)
- {
- if("unload" !== _loc2_)
- {
- if("open" !== _loc2_)
- {
- if("progress" !== _loc2_)
- {
- if("ioError" !== _loc2_)
- {
- if("securityError" === _loc2_)
- {
- §_-26I§ = 2;
- if(!retry())
- {
- dispatchEvent(new AssetLoaderEvent("AssetLoaderEventError",§_-21v§));
- }
- }
- }
- else
- {
- §_-26I§ = 1;
- if(!retry())
- {
- dispatchEvent(new AssetLoaderEvent("AssetLoaderEventError",§_-21v§));
- }
- }
- }
- else
- {
- dispatchEvent(new AssetLoaderEvent("AssetLoaderEventProgress",§_-21v§));
- }
- }
- else
- {
- dispatchEvent(new AssetLoaderEvent("AssetLoaderEventOpen",§_-21v§));
- }
- }
- else
- {
- dispatchEvent(new AssetLoaderEvent("AssetLoaderEventUnload",§_-21v§));
- }
- }
- else
- {
- dispatchEvent(new AssetLoaderEvent("AssetLoaderEventComplete",§_-21v§));
- }
- }
- else
- {
- §_-21v§ = HTTPStatusEvent(param1).status;
- dispatchEvent(new AssetLoaderEvent("AssetLoaderEventStatus",§_-21v§));
- }
- }
- protected function retry() : Boolean
- {
- return false;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement