home *** CD-ROM | disk | FTP | other *** search
/ Champak 48 / cdrom_image.iso / Games / bossbash.swf / scripts / DefineSprite_52 / frame_1 / DoAction.as
Encoding:
Text File  |  2007-09-28  |  1.2 KB  |  55 lines

  1. this.arr._visible = false;
  2. if(this.tot >= _root.gamereqs[_root.dagam][0])
  3. {
  4.    if(_root.so.data.stars[_root.dagam] < 1)
  5.    {
  6.       _root.so.data.stars[_root.dagam] = 1;
  7.    }
  8.    this.arr._y = s0._y + 5;
  9.    this.arr._visible = true;
  10. }
  11. if(this.tot >= _root.gamereqs[_root.dagam][1])
  12. {
  13.    if(_root.so.data.stars[_root.dagam] < 2)
  14.    {
  15.       _root.so.data.stars[_root.dagam] = 2;
  16.    }
  17.    this.arr._y = s2._y + 5;
  18.    this.arr._visible = true;
  19. }
  20. if(this.tot >= _root.gamereqs[_root.dagam][2])
  21. {
  22.    if(_root.so.data.stars[_root.dagam] < 3)
  23.    {
  24.       _root.so.data.stars[_root.dagam] = 3;
  25.    }
  26.    this.arr._y = s5._y + 5;
  27.    this.arr._visible = true;
  28. }
  29. var numstars = _root.so.data.stars[_root.dagam];
  30. i = 0;
  31. while(i < 7)
  32. {
  33.    var thing = eval("s" + i);
  34.    thing.full._visible = false;
  35.    i++;
  36. }
  37. if(numstars >= 1)
  38. {
  39.    s0.full._visible = true;
  40. }
  41. if(numstars >= 2)
  42. {
  43.    s1.full._visible = true;
  44.    s2.full._visible = true;
  45. }
  46. if(numstars >= 3)
  47. {
  48.    s3.full._visible = true;
  49.    s4.full._visible = true;
  50.    s5.full._visible = true;
  51. }
  52. slot0 = _root.gamereqs[_root.dagam][0];
  53. slot1 = _root.gamereqs[_root.dagam][1];
  54. slot2 = _root.gamereqs[_root.dagam][2];
  55.