PDA

View Full Version : Dynamically Change Bordercolor up/over/down colors


vipergtsrz
06-14-2006, 08:39 PM
I am building a map of the US. Each state is a button with a black border and gray as the up color, red as the over color and pink as the down color. I am trying to use and XML file to allow me to dynamically change the bordercolor, up color over color and down color of the states depending on what site I want it to be on.

I have already made it dynamic on if each state button is enabled via xml. I know about the color object:

myColor = new Color (_root.WA);
myColor.setRGB = 0xFF0000;

but that turns the whole thing red. I just want to be able to access each individual part of the button. Is this possible? Thanks in advance.