home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Puzzle / tourist-trap.swf / scripts / DefineSprite_253 / frame_6 / DoAction.as
Encoding:
Text File  |  2005-09-29  |  1.1 KB  |  40 lines

  1. stop();
  2. my_color = new Color(my_mc);
  3. my_color.setRGB(wyculoare);
  4. myValue = my_color.getRGB().toString(16);
  5. trace(myValue.length);
  6. if(myValue.length == 5)
  7. {
  8.    myValue = "0" + myValue;
  9. }
  10. if(myValue.length == 4)
  11. {
  12.    myValue = "00" + myValue;
  13. }
  14. if(myValue.length == 3)
  15. {
  16.    myValue = "000" + myValue;
  17. }
  18. if(myValue.length == 2)
  19. {
  20.    myValue = "0000" + myValue;
  21. }
  22. if(myValue.length == 1)
  23. {
  24.    myValue = "00000" + myValue;
  25. }
  26. xtbcolor = myValue;
  27. xrtb5 = Number("0x" + xtbcolor.slice(0,2)) - 1;
  28. xgtb5 = Number("0x" + xtbcolor.slice(2,4)) - 1;
  29. xbtb5 = Number("0x" + xtbcolor.slice(4,6)) - 1;
  30. wxculoarea2 = new Color(wynbut1.but1);
  31. wxculoarea3 = new Color(wynbut2.but2);
  32. wxculoarea4 = new Color(wynbut3.but3);
  33. wxculoarea5 = new Color(wynbut4.but4);
  34. myColorTransform = new Object();
  35. myColorTransform = {ra:"100",rb:xrtb5,ga:"100",gb:xgtb5,ba:"100",bb:xbtb5,aa:"100",ab:"0"};
  36. wxculoarea2.setTransform(myColorTransform);
  37. wxculoarea3.setTransform(myColorTransform);
  38. wxculoarea4.setTransform(myColorTransform);
  39. wxculoarea5.setTransform(myColorTransform);
  40.