# Color a movieclip

**URL:** <https://forum.kirupa.com/t/color-a-movieclip/215939>\
**Category:** Uncategorized\
**Created:** [February 12, 2007, 11:20am UTC](https://forum.kirupa.com/t/color-a-movieclip/215939 "2007-02-12T11:20:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zoil](https://avatars.discourse-cdn.com/v4/letter/z/85e7bf/32.png) [@Zoil](https://forum.kirupa.com/u/Zoil)\
**Post date:** [February 12, 2007, 11:20am UTC](https://forum.kirupa.com/t/color-a-movieclip/215939/1 "2007-02-12T11:20:09Z")

</div>

ok! i have this code:  
this.createEmptyMovieClip(“my\_mc”, 20);  
with (my\_mc) {  
color = 0x777777;  
lineStyle(2, 0x000000, 100);  
beginFill(colore);  
lineTo(0, 0);  
lineTo(100, 0);  
lineTo(100, 20);  
lineTo(0, 20);  
endFill();  
}  
i want to change the color of this movie clip with a rollover  
my\_mc.onRollOver {  
???  
}  
what i have to put to change the color on 0xAAAAAA?  
and… can i put all in a function?  
and… can i put a text on that mc, with the change of color of text too on roll over?
