# Changing rectangle sizes smoothly

**URL:** <https://forum.kirupa.com/t/changing-rectangle-sizes-smoothly/325852>\
**Category:** flash\
**Created:** [November 8, 2011, 4:18pm UTC](https://forum.kirupa.com/t/changing-rectangle-sizes-smoothly/325852 "2011-11-08T16:18:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shardz](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Shardz](https://forum.kirupa.com/u/Shardz)\
**Post date:** [November 8, 2011, 4:18pm UTC](https://forum.kirupa.com/t/changing-rectangle-sizes-smoothly/325852/1 "2011-11-08T16:18:04Z")

</div>

Hey guys,

I need help with something that I think is sort of easy for you guys but I am not sure how to go about it. I think I can use tweens but I prefer using code when I can.

Anwyay, what I want is for the user to hover over an object, then there is this a rectangle to the left that I want to change size. Is there an easy way to do this? I want the rectangle to become greater in width but maintain the same hieght/stroke and everything. Also I don’t want it to just “pop” to the new size I want it to ease to the new size. Does that make sense? Like I want the user to see the rectangle grow in size depending on what object they hover over. Should I be using tweens or something for this?

Cheers!
