Scale rounded rectangle

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

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.

this is the link