-
im trying to do this
myColor = new Color(myMC);
myColor.setRGB(variable);
we have all of the colors we need in css info in a database but im attempting to use the same values in flash. i can load the variables in fine but when i try to set them as a hex color it just assumes the letters are hex colors.
any suggestions
-
make an array with the hexcolors
base = new array()
base["blue"] = "ox0000ff"
base["red"] = "oxff0000"
base["green"] = "ox00ff00"
.....
and take a look at the tostring() function
and the parseint() function