I had to dynamically change the color of a movieclip – the color code being picked from an XML file…
sounds pretty easy… right!!!.
Its easy as far as you are working with MX and above. But when it comes to Flash 5, it simply doesn’t work.
Wondering why???
Flash 5 does have the same color object-
Syntax
new Color(target);
Methods
getRGB, getTransform, setRGB, setTransform.
Sample code
myColor = new Color(myMovieClip_mc);
var col = “0×996633″;
myColor.setRGB(col);
The above code just doesn’t work. Publish the file in Flash player 6 or above, it works. great!. The best thing is, Flash MX has the same color object with the same methods, and shows their availability in the reference panel as Flash Player 5.
unbelievable !!!
