Skip to main content
Participant
December 9, 2020
Question

Expanding Rounded Rectangle

  • December 9, 2020
  • 1 reply
  • 302 views

Hi there, I'm posting on behalf of my programmer so please excuse me if I don't use the correct terms.

Using animate, we're looking to see how we can create pop ups on a screen that are Rounded Corner Rectangles but need them to be flexible.  What I mean is that the Pop ups will have text in them for people to read and occasionally the text will need to be changed.  This means that the Height of the Rectangle will have to automatically change to suit how much text is in the Pop up, the Rectangle cannot have a 'fixed' height.   Any advice on how to do this would be most welcome.

Cheers, Graham

 

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
December 9, 2020

create 2 movieclips: the bottom two corners (one movieclip) and the center rectangle (with transform/reg point at the top).  also create the top two corners (which won't change) and the multiline dynamic textfield.

 

the textfield will autosize to display the text and you can use its getMeasuredHeight() to place the two bottom corners and the height of the center rectangle.

Participant
December 11, 2020

BIG thanks, I will get them to do this - I really appreciate your feedback 🙂

kglad
Community Expert
Community Expert
December 11, 2020

you're welcome.