home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Frizzle_fraz.swf / scripts / Code / _vv131.as next >
Encoding:
Text File  |  2008-09-26  |  4.2 KB  |  140 lines

  1. package Code
  2. {
  3.    import Code.LIB.MOCHIADS._rg35;
  4.    import Code.LIB.MOCHIADS._uw234;
  5.    import Code.LIB._bm350;
  6.    import Code.LIB._pd424;
  7.    import Code.LIB._vw271;
  8.    import flash.display.DisplayObject;
  9.    import flash.display.MovieClip;
  10.    import flash.display.StageAlign;
  11.    import flash.display.StageScaleMode;
  12.    import flash.events.Event;
  13.    import flash.events.MouseEvent;
  14.    import flash.utils.getDefinitionByName;
  15.    
  16.    public dynamic class _vv131 extends MovieClip
  17.    {
  18.        
  19.       
  20.       private var iTimer:int;
  21.       
  22.       private var iInited:Boolean = false;
  23.       
  24.       private var iSp:_pd424;
  25.       
  26.       private var iMochiMovic:MovieClip;
  27.       
  28.       public function _vv131()
  29.       {
  30.          iInited = false;
  31.          super();
  32.          stop();
  33.          addEventListener(Event.ENTER_FRAME,onEnterFrame);
  34.       }
  35.       
  36.       public function _hr252(param1:MouseEvent) : void
  37.       {
  38.       }
  39.       
  40.       private function init() : void
  41.       {
  42.          var _loc1_:Class = null;
  43.          var _loc2_:Object = null;
  44.          this.x = 0;
  45.          this.y = 0;
  46.          removeEventListener(Event.ENTER_FRAME,onEnterFrame);
  47.          removeEventListener(MouseEvent.MOUSE_MOVE,_hr252);
  48.          removeEventListener(MouseEvent.CLICK,_lf305);
  49.          _bm350.prStage.removeEventListener(Event.RESIZE,onResize);
  50.          nextFrame();
  51.          _loc1_ = Class(getDefinitionByName("_em360"));
  52.          if(_loc1_)
  53.          {
  54.             while(this.numChildren != 0)
  55.             {
  56.                this.removeChildAt(0);
  57.             }
  58.             _loc2_ = new _loc1_();
  59.             addChild(DisplayObject(_loc2_));
  60.          }
  61.       }
  62.       
  63.       public function onResize(param1:Event) : void
  64.       {
  65.          if(!iInited)
  66.          {
  67.             return;
  68.          }
  69.          _bm350._ij151();
  70.          this.x = (_bm350.prStage.stageWidth - 800 * _bm350._tc204) / 2;
  71.          this.y = (_bm350.prStage.stageHeight - 600 * _bm350._tc204) / 2;
  72.          _bm350._aq429(this.x,this.y);
  73.       }
  74.       
  75.       private function _nk262() : void
  76.       {
  77.          var percent:Number = NaN;
  78.          _bm350._dt66 = this.loaderInfo.url;
  79.          _bm350.prStage = root.stage;
  80.          _bm350.prStage.scaleMode = StageScaleMode.NO_SCALE;
  81.          _bm350.prStage.align = StageAlign.TOP_LEFT;
  82.          _bm350.prStage.showDefaultContextMenu = false;
  83.          _bm350._ij151();
  84.          iTimer = 0;
  85.          percent = root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal;
  86.          _bm350.prStage.addEventListener(Event.RESIZE,onResize);
  87.          addEventListener(MouseEvent.CLICK,_lf305);
  88.          addEventListener(MouseEvent.MOUSE_MOVE,_hr252);
  89.          this.onResize(new Event("onresize"));
  90.          _rg35.connect("64a34daf2463328c",this);
  91.          _vw271.track(this,"2a672381");
  92.          iMochiMovic = new MovieClip();
  93.          addChild(iMochiMovic);
  94.          _uw234._tm254({
  95.             "_nw236":iMochiMovic,
  96.             "id":"64a34daf2463328c",
  97.             "res":int(800 * _bm350._tc204) + "x" + int(600 * _bm350._tc204),
  98.             "ad_finished":function():void
  99.             {
  100.                init();
  101.             }
  102.          });
  103.       }
  104.       
  105.       public function onEnterFrame(param1:Event) : void
  106.       {
  107.          var _loc2_:Number = NaN;
  108.          if(!iInited && (stage || root))
  109.          {
  110.             iInited = true;
  111.             _nk262();
  112.          }
  113.          else
  114.          {
  115.             ++iTimer;
  116.             if(false && framesLoaded >= totalFrames && iTimer > 150)
  117.             {
  118.                removeEventListener(Event.ENTER_FRAME,onEnterFrame);
  119.                removeEventListener(MouseEvent.MOUSE_MOVE,_hr252);
  120.                removeEventListener(MouseEvent.CLICK,_lf305);
  121.                nextFrame();
  122.                init();
  123.                _bm350.prStage.removeEventListener(Event.RESIZE,onResize);
  124.                nextFrame();
  125.                this.x = 0;
  126.                this.y = 0;
  127.             }
  128.             else
  129.             {
  130.                _loc2_ = root.loaderInfo.bytesLoaded / root.loaderInfo.bytesTotal;
  131.             }
  132.          }
  133.       }
  134.       
  135.       public function _lf305(param1:MouseEvent) : void
  136.       {
  137.       }
  138.    }
  139. }
  140.