# Edit fill color of manually created shape

**URL:** https://forum.kirupa.com/t/edit-fill-color-of-manually-created-shape/313247
**Category:** Uncategorized
**Created:** [August 24, 2010, 10:40pm UTC](https://forum.kirupa.com/t/edit-fill-color-of-manually-created-shape/313247 "2010-08-24T22:40:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![zanus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/zanus/32/1758_2.png) [@zanus](https://forum.kirupa.com/u/zanus)
#### Post date: [August 24, 2010, 10:40pm UTC](https://forum.kirupa.com/t/edit-fill-color-of-manually-created-shape/313247/1 "2010-08-24T22:40:00Z")

</div>

Say I draw a square on the stage, with a fill of blue and a stroke of black. My width and height are both the same. Now, in my Actionscript, I want to change that blue fill to something else… on some off the wall condition of course.

Better yet, imagine I draw this extremly elaborate polygon out. How could I change it’s fill, dynamically, in Actionscript (AS2 preferably, but I’m just lookin’ for logic here)

Thank you.
