# How can I fade color and tween shape with code?

**URL:** https://forum.kirupa.com/t/how-can-i-fade-color-and-tween-shape-with-code/166346
**Category:** Uncategorized
**Created:** [October 19, 2005, 5:45am UTC](https://forum.kirupa.com/t/how-can-i-fade-color-and-tween-shape-with-code/166346 "2005-10-19T05:45:17Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ohbeewan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohbeewan/32/1745_2.png) [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)
#### Post date: [October 19, 2005, 5:45am UTC](https://forum.kirupa.com/t/how-can-i-fade-color-and-tween-shape-with-code/166346/1 "2005-10-19T05:45:17Z")

</div>

Hey all, this site is the best…

I have a movie clip which contains a rectangle. When a user clicks a button, I want to be able to change the size of the rectangle and fade the color of the rectangle to another color over a few seconds. I’m wondering how to do this with code.

I know how to move things over time with code, so I imagine it’s similar with color and shape, but any help would be fantastic - thanks!
