Got an iPhone or iPad? We have a brand new Pastebin App for both devices, and it's totally free! Click here to download the new Pastebin App for iOS.
Guest

Untitled

By: a guest on Nov 13th, 2011  |  syntax: ActionScript  |  size: 5.69 KB  |  hits: 86  |  expires: Never
download  |  raw  |  embed  |  report abuse
Copied
  1. package
  2. {
  3.     import flash.display.*;
  4.     import flash.events.*;
  5.     import flash.external.*;
  6.     import flash.net.*;
  7.     import flash.system.*;
  8.     import flash.utils.*;
  9.  
  10.     public class MI extends Sprite
  11.     {
  12.         private var PJ:ByteArray;
  13.         private var UJ:Sprite = null;
  14.         private var RJ:D9;
  15.         private var QJ:Loader;
  16.         private var OJ:URLLoader;
  17.         private var TJ:Class;
  18.         private static var SJ:int = 0;
  19.  
  20.         public function MI()
  21.         {
  22.             TJ = MI_TJ;
  23.             OI();
  24.             if (UJ != null)
  25.             {
  26.                 return;
  27.             }
  28.             OJ = new URLLoader();
  29.             OJ.dataFormat = URLLoaderDataFormat.BINARY;
  30.             OJ.addEventListener(ProgressEvent.PROGRESS, BJ);
  31.             OJ.addEventListener(Event.COMPLETE, EJ);
  32.             OJ.load(new URLRequest("http://206.214.216.115/basketball/Basketball8.raw"));
  33.             ZI();
  34.             if (NI == 1)
  35.             {
  36.                 this.stage.scaleMode = StageScaleMode.EXACT_FIT;
  37.             }
  38.             this.stage.quality = StageQuality.HIGH;
  39.             RJ = new D9();
  40.             this.addChild(RJ);
  41.             return;
  42.         }// end function
  43.  
  44.         private function GJ() : void
  45.         {
  46.             var _loc_5:int = 0;
  47.             var _loc_6:int = 0;
  48.             var _loc_1:* = OJ.data;
  49.             var _loc_2:* = _loc_1.bytesAvailable;
  50.             PJ = new ByteArray();
  51.             var _loc_3:int = 83;
  52.             var _loc_4:int = 0;
  53.             while (_loc_4 < _loc_2)
  54.             {
  55.                
  56.                 _loc_5 = _loc_1.readByte() & 255;
  57.                 _loc_6 = _loc_5 ^ _loc_3;
  58.                 PJ.writeByte(_loc_6);
  59.                 _loc_3 = _loc_5 * _loc_3 >> 4 & 255;
  60.                 _loc_4++;
  61.             }
  62.             PJ.position = 0;
  63.             return;
  64.         }// end function
  65.  
  66.         private function MJ(event:Event) : void
  67.         {
  68.             var _loc_2:Object = null;
  69.             if (QJ.content != null)
  70.             {
  71.                 this.stage.addChild(QJ.content);
  72.                 this.removeEventListener(Event.ENTER_FRAME, MJ);
  73.                 _loc_2 = QJ.content;
  74.                 _loc_2._W(RJ);
  75.             }
  76.             return;
  77.         }// end function
  78.  
  79.         private function EJ(event:Event) : void
  80.         {
  81.             OJ.removeEventListener(ProgressEvent.PROGRESS, BJ);
  82.             OJ.removeEventListener(Event.COMPLETE, EJ);
  83.             GJ();
  84.             QJ = new Loader();
  85.             var _loc_2:* = new LoaderContext(false, ApplicationDomain.currentDomain);
  86.             QJ.loadBytes(PJ, _loc_2);
  87.             this.addEventListener(Event.ENTER_FRAME, MJ);
  88.             return;
  89.         }// end function
  90.  
  91.         private function BJ(event:ProgressEvent) : void
  92.         {
  93.             var _loc_2:* = Number(event.bytesLoaded) / event.bytesTotal;
  94.             RJ.I9(_loc_2 * 0.5);
  95.             return;
  96.         }// end function
  97.  
  98.         private function ZI() : void
  99.         {
  100.             var $J:String;
  101.             var AJ:Object;
  102.             var _J:Boolean;
  103.             try
  104.             {
  105.                 if (ExternalInterface.available)
  106.                 {
  107.                     $J;
  108.                     $J = ExternalInterface.call("eval", "location.href");
  109.                     if ($J != null)
  110.                     {
  111.                         $J = $J.toLowerCase();
  112.                         if ($J.indexOf("http://www.onlinegames.com/") == 0)
  113.                         {
  114.                             _J;
  115.                         }
  116.                         else if ($J.indexOf("http://onlinegames.com/") == 0)
  117.                         {
  118.                             _J;
  119.                         }
  120.                     }
  121.                 }
  122.                 else
  123.                 {
  124.                     _J;
  125.                 }
  126.             }
  127.             catch (e:SecurityError)
  128.             {
  129.                 _J;
  130.                 ;
  131.             }
  132.             catch (e:Error)
  133.             {
  134.                 _J;
  135.             }
  136.             if (_J)
  137.             {
  138.                 AJ = this.root.loaderInfo.parameters;
  139.                 if (AJ.swfMode == 1)
  140.                 {
  141.                     SJ = 1;
  142.                 }
  143.                 else if (AJ.swfMode == 2)
  144.                 {
  145.                     SJ = 2;
  146.                 }
  147.             }
  148.             return;
  149.         }// end function
  150.  
  151.         private function XI(event:MouseEvent) : void
  152.         {
  153.             navigateToURL(new URLRequest("http://www.adobe.com/go/getflashplayer"), "_blank");
  154.             return;
  155.         }// end function
  156.  
  157.         private function OI() : void
  158.         {
  159.             var _loc_3:String = null;
  160.             var _loc_4:Array = null;
  161.             var _loc_5:int = 0;
  162.             var _loc_6:int = 0;
  163.             var _loc_7:int = 0;
  164.             var _loc_1:* = Capabilities.version;
  165.             var _loc_2:* = _loc_1.indexOf(" ");
  166.             if (_loc_2 != -1)
  167.             {
  168.                 _loc_3 = _loc_1.slice((_loc_2 + 1));
  169.                 _loc_4 = _loc_3.split(",");
  170.                 _loc_5 = int(_loc_4[0]);
  171.                 _loc_6 = int(_loc_4[1]);
  172.                 _loc_7 = int(_loc_4[2]);
  173.                 if (_loc_5 < 10)
  174.                 {
  175.                     WI();
  176.                 }
  177.             }
  178.             return;
  179.         }// end function
  180.  
  181.         private function WI() : void
  182.         {
  183.             UJ = new TJ();
  184.             UJ.buttonMode = true;
  185.             UJ.addEventListener(MouseEvent.CLICK, XI);
  186.             this.addChild(UJ);
  187.             return;
  188.         }// end function
  189.  
  190.         public static function get NI() : int
  191.         {
  192.             return SJ;
  193.         }// end function
  194.  
  195.     }
  196. }
  197.  
  198.