home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Esportes / abyss01.swf / scripts / __Packages / cross.as next >
Encoding:
Text File  |  2008-03-12  |  644 b   |  34 lines

  1. class cross extends MovieClip
  2. {
  3.    var sizeN;
  4.    var suVis = "no";
  5.    var suN = 0;
  6.    function cross()
  7.    {
  8.       super();
  9.    }
  10.    function come()
  11.    {
  12.       this._yscale = this._xscale = 50;
  13.       this._x = 200;
  14.       this._y = 163;
  15.    }
  16.    function onEnterFrame()
  17.    {
  18.       if(_root.playIng == "no")
  19.       {
  20.          this.removeMovieClip();
  21.       }
  22.       if(_root.speedN > 0)
  23.       {
  24.          this.sizeN = 50 + 0.55 * (this._y - 163);
  25.          this._yscale = this._xscale = this.sizeN;
  26.          this._y += _root.speedN;
  27.       }
  28.       if(this._y > 320)
  29.       {
  30.          this.removeMovieClip();
  31.       }
  32.    }
  33. }
  34.