home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / dragon.swf / scripts / DefineSprite_388_cannon / frame_1 / DoAction.as
Encoding:
Text File  |  2008-09-12  |  372 b   |  18 lines

  1. var cannons = new Array(c1,c2,c3);
  2. c1.ctype = "proj_enemy_fire";
  3. c2.ctype = "proj_enemy_ice";
  4. c3.ctype = "proj_enemy_steel";
  5. var num_cannons = 3;
  6. var cannonNdx = random(num_cannons);
  7. var bod = cannons[cannonNdx];
  8. var ndx = 0;
  9. while(ndx < num_cannons)
  10. {
  11.    if(bod != cannons[ndx])
  12.    {
  13.       cannons[ndx]._alpha = 0;
  14.    }
  15.    ndx++;
  16. }
  17. var ammo = bod.ctype;
  18.