home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / tourist-trap.swf / scripts / DefineSprite_253 / frame_1 / DoAction_2.as next >
Encoding:
Text File  |  2005-09-29  |  1.6 KB  |  60 lines

  1. stop();
  2. if(wyasezare == "Orizontal" && wyinstructions == false)
  3. {
  4.    this.gotoAndStop(2);
  5. }
  6. if(wyasezare == "Vertical" && wyinstructions == true && wypozitie == "Sus")
  7. {
  8.    this.gotoAndStop(3);
  9. }
  10. if(wyasezare == "Vertical" && wyinstructions == true && wypozitie == "Jos")
  11. {
  12.    this.gotoAndStop(4);
  13. }
  14. if(wyasezare == "Orizontal" && wyinstructions == true && wypozitie == "Sus")
  15. {
  16.    this.gotoAndStop(5);
  17. }
  18. if(wyasezare == "Orizontal" && wyinstructions == true && wypozitie == "Jos")
  19. {
  20.    this.gotoAndStop(6);
  21. }
  22. my_color = new Color(my_mc);
  23. my_color.setRGB(wyculoare);
  24. myValue = my_color.getRGB().toString(16);
  25. trace(myValue.length);
  26. if(myValue.length == 5)
  27. {
  28.    myValue = "0" + myValue;
  29. }
  30. if(myValue.length == 4)
  31. {
  32.    myValue = "00" + myValue;
  33. }
  34. if(myValue.length == 3)
  35. {
  36.    myValue = "000" + myValue;
  37. }
  38. if(myValue.length == 2)
  39. {
  40.    myValue = "0000" + myValue;
  41. }
  42. if(myValue.length == 1)
  43. {
  44.    myValue = "00000" + myValue;
  45. }
  46. xtbcolor = myValue;
  47. xrtb5 = Number("0x" + xtbcolor.slice(0,2)) - 1;
  48. xgtb5 = Number("0x" + xtbcolor.slice(2,4)) - 1;
  49. xbtb5 = Number("0x" + xtbcolor.slice(4,6)) - 1;
  50. wxculoarea2 = new Color(wynbut1.but1);
  51. wxculoarea3 = new Color(wynbut2.but2);
  52. wxculoarea4 = new Color(wynbut3.but3);
  53. wxculoarea5 = new Color(wynbut4.but4);
  54. myColorTransform = new Object();
  55. myColorTransform = {ra:"100",rb:xrtb5,ga:"100",gb:xgtb5,ba:"100",bb:xbtb5,aa:"100",ab:"0"};
  56. wxculoarea2.setTransform(myColorTransform);
  57. wxculoarea3.setTransform(myColorTransform);
  58. wxculoarea4.setTransform(myColorTransform);
  59. wxculoarea5.setTransform(myColorTransform);
  60.