# Is there some way to create custom color variable?

**URL:** <https://forum.kirupa.com/t/is-there-some-way-to-create-custom-color-variable/252601>\
**Category:** flash\
**Created:** [February 21, 2008, 4:50pm UTC](https://forum.kirupa.com/t/is-there-some-way-to-create-custom-color-variable/252601 "2008-02-21T16:50:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iblokh](https://avatars.discourse-cdn.com/v4/letter/i/8baadc/32.png) [@iblokh](https://forum.kirupa.com/u/iblokh)\
**Post date:** [February 21, 2008, 4:50pm UTC](https://forum.kirupa.com/t/is-there-some-way-to-create-custom-color-variable/252601/1 "2008-02-21T16:50:59Z")

</div>

I’m creating a fairly complex animation frame-by-frame, but I would like to be able to change the color of certain parts of it dynamically. The only approach I can think of is changing each section into a movieclip, putting them all into an array and then looping through the array and assigning a color. However, the animation is long and since the colored shapes constantly change, I would end up with more than a hundred MCs.

A better option, if possible, would be to create a custom variable that I assign as a color in the color picker. So, instead of choosing a value like “#CCCCCC”, I would be able to assign a name like “customColor”, then I would dynamically change the value of “customColor” in AS3. Is that at all possible? Do you know of any extensions that add that functionallity?
