# Dynamically change fill color

**URL:** https://forum.kirupa.com/t/dynamically-change-fill-color/214403
**Category:** Uncategorized
**Created:** [January 28, 2007, 6:28pm UTC](https://forum.kirupa.com/t/dynamically-change-fill-color/214403 "2007-01-28T18:28:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mathminded](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mathminded](https://forum.kirupa.com/u/mathminded)
#### Post date: [January 28, 2007, 6:28pm UTC](https://forum.kirupa.com/t/dynamically-change-fill-color/214403/1 "2007-01-28T18:28:13Z")

</div>

How can I dynamically change the color of fill for something created like this:  
[AS]this.createEmptyMovieClip(“myClip”,\_root.getNextHighestDepth());  
with (myClip) {  
beginFill(0xffffff,100);  
moveTo(0,0);  
lineTo(50,0);  
lineTo(50,100);  
lineTo(0,100);  
lineTo(0,0);  
endFill;  
}[/AS]

I’d like to change the fill color onRollOver, onRollOut, onRelease, etc., but I don’t know which property to refer to.

I think this link probably would have answered my question, but unfortunately it’s now dead:

> [@senocular;420477](#):
>
> [http://www.toolblast.com/interactive/downloads/index.php?subaction=showfull&id=1074710676&archive=&start\_from=&ucat=2&](http://www.toolblast.com/interactive/downloads/index.php?subaction=showfull&id=1074710676&archive=&start_from=&ucat=2&)
