# Changing color of Movie Clip with Combo box

**URL:** <https://forum.kirupa.com/t/changing-color-of-movie-clip-with-combo-box/284889>\
**Category:** flash\
**Created:** [March 24, 2009, 6:48pm UTC](https://forum.kirupa.com/t/changing-color-of-movie-clip-with-combo-box/284889 "2009-03-24T18:48:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanis42](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@shanis42](https://forum.kirupa.com/u/shanis42)\
**Post date:** [March 24, 2009, 6:48pm UTC](https://forum.kirupa.com/t/changing-color-of-movie-clip-with-combo-box/284889/1 "2009-03-24T18:48:37Z")

</div>

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?
