home *** CD-ROM | disk | FTP | other *** search
- stop();
- my_color = new Color(my_mc);
- my_color.setRGB(wyculoare);
- myValue = my_color.getRGB().toString(16);
- trace(myValue.length);
- if(myValue.length == 5)
- {
- myValue = "0" + myValue;
- }
- if(myValue.length == 4)
- {
- myValue = "00" + myValue;
- }
- if(myValue.length == 3)
- {
- myValue = "000" + myValue;
- }
- if(myValue.length == 2)
- {
- myValue = "0000" + myValue;
- }
- if(myValue.length == 1)
- {
- myValue = "00000" + myValue;
- }
- xtbcolor = myValue;
- xrtb5 = Number("0x" + xtbcolor.slice(0,2)) - 1;
- xgtb5 = Number("0x" + xtbcolor.slice(2,4)) - 1;
- xbtb5 = Number("0x" + xtbcolor.slice(4,6)) - 1;
- wxculoarea2 = new Color(wynbut1.but1);
- wxculoarea3 = new Color(wynbut2.but2);
- wxculoarea4 = new Color(wynbut3.but3);
- wxculoarea5 = new Color(wynbut4.but4);
- myColorTransform = new Object();
- myColorTransform = {ra:"100",rb:xrtb5,ga:"100",gb:xgtb5,ba:"100",bb:xbtb5,aa:"100",ab:"0"};
- wxculoarea2.setTransform(myColorTransform);
- wxculoarea3.setTransform(myColorTransform);
- wxculoarea4.setTransform(myColorTransform);
- wxculoarea5.setTransform(myColorTransform);
-