home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / abyss01.swf / scripts / __Packages / signal.as < prev    next >
Encoding:
Text File  |  2008-03-12  |  2.0 KB  |  82 lines

  1. class signal extends MovieClip
  2. {
  3.    var clickN;
  4.    var sizeN;
  5.    var moveInter;
  6.    var suVis = "no";
  7.    function signal()
  8.    {
  9.       super();
  10.    }
  11.    function come()
  12.    {
  13.       this._xscale = 20;
  14.       this._yscale = 20;
  15.       this._x = 310;
  16.       this._y = 155;
  17.       this.clickN = 3;
  18.       this.gotoAndStop(this.clickN);
  19.    }
  20.    function moveF(mc)
  21.    {
  22.       clearInterval(mc.moveInter);
  23.       mc.gotoAndStop(1);
  24.    }
  25.    function onEnterFrame()
  26.    {
  27.       if(_root.playIng == "no")
  28.       {
  29.          this.removeMovieClip();
  30.       }
  31.       if(_root.speedN > 0)
  32.       {
  33.          if(this._y < 301)
  34.          {
  35.             this.sizeN = 20 + 0.53 * (this._y - 150);
  36.          }
  37.          else
  38.          {
  39.             this.sizeN = 100;
  40.          }
  41.          this._yscale = this._xscale = this.sizeN;
  42.          this._x += _root.speedN / 1.5;
  43.          this._y += _root.speedN;
  44.       }
  45.       if(this.suVis == "no")
  46.       {
  47.          if(this.clickN != 1)
  48.          {
  49.             if(this.clickN != 2)
  50.             {
  51.                if(this.clickN == 3)
  52.                {
  53.                   if(this._y > 230 && this._y <= 260)
  54.                   {
  55.                      if(_root.speedN == 0)
  56.                      {
  57.                         trace("∞ä░∞¥î " + this._y + " , " + this);
  58.                         _root.user_mc.j100.gotoAndPlay(2);
  59.                         this.moveInter = setInterval(this.moveF,500,this);
  60.                         _root.gameSocreF(100);
  61.                         this.suVis = "yes";
  62.                      }
  63.                   }
  64.                   else if(this._y > 240)
  65.                   {
  66.                      if(this.suVis = "no")
  67.                      {
  68.                         trace("∞òê∞ä░∞¥î " + this._y + " , " + _root.user_mc._y);
  69.                         this.suVis = "yes";
  70.                      }
  71.                   }
  72.                }
  73.             }
  74.          }
  75.       }
  76.       if(this._y > 320)
  77.       {
  78.          this.removeMovieClip();
  79.       }
  80.    }
  81. }
  82.