Many complex properties in Flash and Flex (arrays, rectangles, etc) need to be 
fully re-assigned as there is no way to watch each property for changes.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.<http://www.adobe.com/>
Blog: http://blogs.adobe.com/aharui

From: [email protected] [mailto:[email protected]] On Behalf 
Of flexaustin
Sent: Monday, April 27, 2009 12:11 PM
To: [email protected]
Subject: [flexcoders] scrollRect width and height - flexaustin





I have tried increasing the width/ height of the scrollRect once its been set, 
say your swf scales ot the window size, but nothing will increase its width or 
height.

So, instead of increaseing and decreasing the width and height of the 
scrollRect when the stage is resized I just create and assign a new rectangle 
to the components scrollRect property setting its width and height to the new 
stage size.

Is there a better solution? As trying component.scrollRect.width = newSize does 
nothing to the scrollRect.

Any better solutions?

Reply via email to