home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / antipacman.swf / scripts / DefineSprite_213 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-10-01  |  480 b   |  15 lines

  1. TotalBalls = 20;
  2. dblPI = 6.283185307179586;
  3. Reflect = [undefined,3.141592653589793,4.71238898038469,0,1.5707963267948966];
  4. i = 1;
  5. while(i <= TotalBalls)
  6. {
  7.    duplicateMovieClip("Pacman","P" + i,16384 + this.getNextHighestDepth());
  8.    this["P" + i].x = this["P" + i]._x = random(450);
  9.    this["P" + i].y = this["P" + i]._y = random(425);
  10.    this["P" + i].Dir = Math.random() * dblPI;
  11.    this["P" + i].Speed = 5 + Math.random() * 7;
  12.    i++;
  13. }
  14. Pacman._visible = false;
  15.