I have a combo box called “jcolor1”. I have a Movie Clip called “main”. In my combobox I have set all of the color names in the labels section, and all of their hex values in the values section.
I am trying to be able to change the color of the movie clip using actionsctipt.
My actionscript I have (attached to the combobox)
on (change) {
myColor = new Color(main);
myColor.setRGB(jcolor1);
}
Its not working, I think the link between the Movie Clip and the combobox is not right, maybe I am not declaring the variable correctly.
I want the combo box to reference the hex value I put into the data section in the component inspector and change “main” to that color.
Any suggestions?