# \[Flash8\] mc color change through external file?

**URL:** <https://forum.kirupa.com/t/flash8-mc-color-change-through-external-file/211505>\
**Category:** flash\
**Created:** [January 2, 2007, 1:59pm UTC](https://forum.kirupa.com/t/flash8-mc-color-change-through-external-file/211505 "2007-01-02T13:59:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![graphiteoak](https://avatars.discourse-cdn.com/v4/letter/g/3ec8ea/32.png) [@graphiteoak](https://forum.kirupa.com/u/graphiteoak)\
**Post date:** [January 2, 2007, 1:59pm UTC](https://forum.kirupa.com/t/flash8-mc-color-change-through-external-file/211505/1 "2007-01-02T13:59:05Z")

</div>

Hey all!

I want to change the color of a movie clip, and I’ve succeeded with the following code:

**var my\_color:Color = new Color(mc);  
my\_color.setRGB(0xFF0000); // mc turns red**

Now, this is only the start. What I really want is that the color is changed via an _external_ textfile (or similar).

I’ve gathered that this is possible with the LoadVariables function, but I can’t seem to get it right. Does anyone have a solution for this? I’d also like to know how I should format the textfile code (should it be something like this: “&mc=0xFF0000”?)…
