home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Nave / planetx.swf / scripts / frame_17 / DoAction_14.as < prev    next >
Encoding:
Text File  |  2006-06-13  |  852 b   |  42 lines

  1. function tellplayer(num)
  2. {
  3.    attachMovie("tell_player","tellPlayer",9);
  4.    with(tellPlayer)
  5.    {
  6.       _x = 320;
  7.       _y = 100;
  8.       clip.gotoAndStop(num);
  9.    }
  10.    _root.playerscore.gotoAndPlay(2);
  11.    if(num == 9)
  12.    {
  13.       extralife_snd.start();
  14.    }
  15.    switch(num)
  16.    {
  17.       case 1:
  18.          _root.score += 500;
  19.          _root.sound1.start();
  20.          break;
  21.       case 2:
  22.          _root.score += 750;
  23.          _root.sound2.start();
  24.          break;
  25.       case 3:
  26.          _root.score += 1000;
  27.          _root.sound3.start();
  28.          break;
  29.       case 4:
  30.          _root.score += 2000;
  31.          _root.sound4.start();
  32.          break;
  33.       case 5:
  34.          _root.score += 3000;
  35.          _root.sound5.start();
  36.          break;
  37.       case 6:
  38.          _root.score += 4000;
  39.          _root.sound6.start();
  40.    }
  41. }
  42.