# Scale rounded rectangle

**URL:** <https://forum.kirupa.com/t/scale-rounded-rectangle/264167>\
**Category:** Uncategorized\
**Created:** [June 23, 2008, 6:21pm UTC](https://forum.kirupa.com/t/scale-rounded-rectangle/264167 "2008-06-23T18:21:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vaderist](https://avatars.discourse-cdn.com/v4/letter/v/b9bd4f/32.png) [@vaderist](https://forum.kirupa.com/u/vaderist)\
**Post date:** [June 23, 2008, 6:21pm UTC](https://forum.kirupa.com/t/scale-rounded-rectangle/264167/1 "2008-06-23T18:21:27Z")

</div>

Is there a way, through actionscript 3.0, that a rounded rectangle can be scaled while maintaining the roundness of its corners? I am tweening the scaling of the object.

V

---

<div class="post-metadata">

**Author:** ![snickelfritz](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@snickelfritz](https://forum.kirupa.com/u/snickelfritz)\
**Post date:** [June 23, 2008, 7:13pm UTC](https://forum.kirupa.com/t/scale-rounded-rectangle/264167/2 "2008-06-23T19:13:14Z")

</div>

Search for “AS3 9-slice-scaling”.  
This computationally divides the rectangle into a grid of 9 sections based on the corner radius, then applies scaling only to the center section, thus preserving the scaling/aspect of the corner sections.

---

<div class="post-metadata">

**Author:** ![msxw](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@msxw](https://forum.kirupa.com/u/msxw)\
**Post date:** [June 24, 2008, 3:20pm UTC](https://forum.kirupa.com/t/scale-rounded-rectangle/264167/3 "2008-06-24T15:20:56Z")

</div>

this is the [link](http://www.bytearray.org/?p=118)
