# Dynamic Movieclip Color

**URL:** <https://forum.kirupa.com/t/dynamic-movieclip-color/160142>\
**Category:** flash\
**Created:** [August 23, 2005, 6:39pm UTC](https://forum.kirupa.com/t/dynamic-movieclip-color/160142 "2005-08-23T18:39:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![saveth](https://avatars.discourse-cdn.com/v4/letter/s/7c8e57/32.png) [@saveth](https://forum.kirupa.com/u/saveth)\
**Post date:** [August 23, 2005, 6:39pm UTC](https://forum.kirupa.com/t/dynamic-movieclip-color/160142/1 "2005-08-23T18:39:42Z")

</div>

Hi,

I was wondering if anyone has an idea how to change the bg\_color of a movie clip dynamically through a xml file.

I can pull the information needed just fine but I can not get setRGB to recognize a variable name.

ie: newColor = new Color(bg\_mc);  
newColor.setRGB(bg\_color);  
bg\_color = 0x102892;

does not do the trick

any help would be appreciated

Thanks,  
saveth

—I’m a idiot and had a temporary brain fart.—  
sorry for the wasted post
