# Color change with as

**URL:** <https://forum.kirupa.com/t/color-change-with-as/102719>\
**Category:** Uncategorized\
**Created:** [February 26, 2004, 10:54am UTC](https://forum.kirupa.com/t/color-change-with-as/102719 "2004-02-26T10:54:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [February 26, 2004, 10:54am UTC](https://forum.kirupa.com/t/color-change-with-as/102719/1 "2004-02-26T10:54:36Z")

</div>

Hello !  
I’m trying to change the color of two movieclip with AS, I re-used a piece of AS that i found on this forum and which changed the color of a movieclip with ease. The problem is that i have some difficulties in understanding the code and when i test my movie it won’t change to the color i want. I know i must do wrong thing but i can’t figure it out.  
The color value that i want (just for the test) are stored in [AS]but.onRelease = function() {  
btarR = 1;  
btarG = 1;  
btarB = 1;  
btarA = 100;  
};[/AS]  
If someone could explain me how this thing work or fixed it, it would be great !:thumb:  
Thanks  
Ubik
