home *** CD-ROM | disk | FTP | other *** search
/ Champak 112 / jogo-disk-112.iso / Games / failuna.swf / scripts / aso#46031.as < prev    next >
Text File  |  2010-07-14  |  2KB  |  57 lines

  1. _global["aso#34053"] = function()
  2. {
  3.    this["aso#17478"] = Math.random() * 3 + 1;
  4.    this["aso#42826"] = Math.random() * 0.05 + 0.05;
  5.    this.offset = Math.random() * 3.141592653589793;
  6.    this._x = -10;
  7.    this._y = Math.random() * 340 + 50;
  8.    if(Math.random() < 0.5)
  9.    {
  10.       this["aso#07313"] = 1;
  11.    }
  12.    else if(Math.random() < 1)
  13.    {
  14.       this["aso#07313"] = 2;
  15.    }
  16.    else
  17.    {
  18.       this["aso#07313"] = 3;
  19.    }
  20.    this["aso#65390"].gotoAndStop(this["aso#07313"]);
  21.    this["aso#38229"] = 0;
  22. };
  23. eval("aso#34053").prototype = new MovieClip();
  24. eval("aso#34053").prototype.onEnterFrame = function()
  25. {
  26.    if(_global["aso#69987"] == 0)
  27.    {
  28.       if(this != eval("aso#46031"))
  29.       {
  30.          this.offset += this["aso#42826"];
  31.          this._x += _global["aso#50628"];
  32.          this._y += Math.cos(this.offset) * this["aso#17478"];
  33.          if(this._x > 560)
  34.          {
  35.             _global["aso#63998"](this);
  36.          }
  37.          if(this.hitTest(_root["aso#87954"]))
  38.          {
  39.             if(this["aso#07313"] == _global["aso#16086"])
  40.             {
  41.                _global["aso#19291"] += 10;
  42.                _global["aso#84749"].start();
  43.             }
  44.             else
  45.             {
  46.                _global["aso#22075"].start();
  47.                _global["aso#25280"] -= 60;
  48.                _global["aso#19291"] -= 3;
  49.             }
  50.             _global["aso#36837"](this._x,this._y,this["aso#07313"]);
  51.             _global["aso#63998"](this);
  52.          }
  53.       }
  54.    }
  55. };
  56. Object.registerClass("aso#46031",eval("aso#34053"));
  57.