home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / catinvaders.swf / scripts / DefineSprite_247 / frame_2 / DoAction.as
Encoding:
Text File  |  2007-03-20  |  773 b   |  18 lines

  1. this._alpha = 100;
  2. this.levelText = _root.Functions.level;
  3. if(_root.Functions.deadCats == _root.Functions.cats and 1 < _root.Functions.level or (_root.Functions.level - 1) / _root.Functions.bossLevelEvery == int((_root.Functions.level - 1) / _root.Functions.bossLevelEvery) and _root.Functions.bossState >= 41 and 1 < _root.Functions.level)
  4. {
  5.    this.idealShots = _root.Functions.levelIdealShots;
  6.    this.levelShots = _root.Functions.levelShots;
  7.    trace(idealShots + " " + levelShots);
  8.    this.hitRate = int(idealShots / levelShots * 100);
  9.    this.bonusScore = hitrate;
  10.    this.currentScore = _root.Functions.score;
  11.    this.newScore = _root.Functions.score + this.bonusScore;
  12.    eval("/scoreBox").addScore(this.bonusScore);
  13. }
  14. else
  15. {
  16.    gotoAndPlay(56);
  17. }
  18.