Skip to main content
Participant
February 4, 2021
Question

Changing square with border radius to rectangle without warping the radius.

I want to animate a square to a rectangle while respecting the border radius of the original square. Instead, when I try to change the dimensions of the square, the border radius is skewed. Any ideas?

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

JoãoCésar17023019
Community Expert
Community Expert
February 4, 2021

Hi.

 

If you're on an AS3 document, one way is to convert the rectangle shape into a Movie Clip by calling the Convert to Symbol dialog (Modify > Convert to Symbol... (F8)) and then checking Enable guides for 9-slice scaling before hitting OK.

 

Another not so obvious approach is to create a rectangle smaller than the size that you want and then scale the stroke until you get the desired dimensions. Both fill and stroke must have the same color.

 

Regards,

JC

Translate