home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / ZanyAttack.swf / scripts / DefineSprite_155 / frame_35 / DoAction.as
Encoding:
Text File  |  2006-06-13  |  539 b   |  15 lines

  1. if(eval("/:enemyLaserActive") == "0")
  2. {
  3.    tellTarget("/Sound")
  4.    {
  5.       gotoAndStop("laser sound");
  6.       play();
  7.    }
  8.    enemyFireNum = "0";
  9.    call("ChooseEnemyFire");
  10.    duplicateMovieClip("/baseEnemyLaser","enemyLaser","2" + 16384);
  11.    setProperty("/enemyLaser", _X, getProperty("/enemyGrid", _X) + getProperty("/enemyGrid/enemy" add enemyFireNum, _X));
  12.    setProperty("/enemyLaser", _Y, getProperty("/enemyGrid", _Y) + getProperty("/enemyGrid/enemy" add enemyFireNum, _Y) + "10");
  13.    set("/:enemyLaserActive","1");
  14. }
  15.