# Dynamically changing fill colour in Flash 8

**URL:** https://forum.kirupa.com/t/dynamically-changing-fill-colour-in-flash-8/190500
**Category:** flash
**Created:** [June 12, 2006, 12:50pm UTC](https://forum.kirupa.com/t/dynamically-changing-fill-colour-in-flash-8/190500 "2006-06-12T12:50:53Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bachchun](https://avatars.discourse-cdn.com/v4/letter/b/e56c9b/32.png) [@bachchun](https://forum.kirupa.com/u/bachchun)
#### Post date: [June 12, 2006, 12:50pm UTC](https://forum.kirupa.com/t/dynamically-changing-fill-colour-in-flash-8/190500/1 "2006-06-12T12:50:53Z")

</div>

I have drawn a rectangular box with lineTo and filled it with orange colour using beginFill. I want the colour to change as user inputs values, like red for 2, green for 3, etc. upto say 10. Also, I want the previous colour to clear off for the new colour to come in. Thank you.
