home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / Never_End.swf / scripts / game / EndMovie.as < prev    next >
Encoding:
Text File  |  2008-09-23  |  2.5 KB  |  107 lines

  1. package game
  2. {
  3.    import flash.display.MovieClip;
  4.    import flash.events.Event;
  5.    import flash.events.MouseEvent;
  6.    
  7.    [Embed(source="/_assets/assets.swf", symbol="game.EndMovie")]
  8.    public class EndMovie extends MovieClip
  9.    {
  10.        
  11.       
  12.       public var skipBtn:skip_btn;
  13.       
  14.       public var _logo:MovieClip;
  15.       
  16.       public var __logo:MovieClip;
  17.       
  18.       public var ___logo:MovieClip;
  19.       
  20.       public function EndMovie()
  21.       {
  22.          super();
  23.          addFrameScript(108,frame109,161,frame162,287,frame288,1540,frame1541,1559,frame1560,1620,frame1621,1646,frame1647,1797,frame1798);
  24.          init();
  25.       }
  26.       
  27.       private function init() : void
  28.       {
  29.          var _loc1_:MovieClip = null;
  30.          _loc1_ = this.getChildByName("skipBtn") as MovieClip;
  31.          _loc1_.addEventListener(MouseEvent.CLICK,skipMc,false,0,true);
  32.       }
  33.       
  34.       internal function frame1621() : *
  35.       {
  36.          ___logo.gotoAndStop(Language.branding_nr);
  37.       }
  38.       
  39.       internal function frame288() : *
  40.       {
  41.          playRotate();
  42.       }
  43.       
  44.       internal function frame162() : *
  45.       {
  46.          playRotate();
  47.       }
  48.       
  49.       internal function frame109() : *
  50.       {
  51.          playBg();
  52.       }
  53.       
  54.       private function skipMc(param1:MouseEvent) : void
  55.       {
  56.          param1.currentTarget.removeEventListener(MouseEvent.CLICK,skipMc);
  57.          remove();
  58.       }
  59.       
  60.       internal function frame1647() : *
  61.       {
  62.          turnOffBg();
  63.       }
  64.       
  65.       public function remove() : void
  66.       {
  67.          if(loaderInfo != null)
  68.          {
  69.             turnOffBg();
  70.             stop();
  71.             this.dispatchEvent(new Event("onEndMovieDone"));
  72.          }
  73.       }
  74.       
  75.       internal function frame1541() : *
  76.       {
  77.          __logo.gotoAndStop(Language.branding_nr);
  78.       }
  79.       
  80.       public function turnOffBg() : void
  81.       {
  82.          SoundManager.getInstance().turnOffBg();
  83.       }
  84.       
  85.       public function playBg() : void
  86.       {
  87.          SoundManager.getInstance().playSound("geomBg",SoundManager.TYPE_BG);
  88.       }
  89.       
  90.       public function playRotate() : void
  91.       {
  92.          SoundManager.getInstance().playSound("mapRotate",SoundManager.TYPE_ITEM);
  93.       }
  94.       
  95.       internal function frame1798() : *
  96.       {
  97.          stop();
  98.          remove();
  99.       }
  100.       
  101.       internal function frame1560() : *
  102.       {
  103.          _logo.gotoAndStop(Language.branding_nr);
  104.       }
  105.    }
  106. }
  107.