PDA

View Full Version : Flex dynamic dimensions


TheDNA
05-26-2008, 08:47 AM
When you accessed a swf in Flash, you saw the whole flash movie fitting in the window.
But now i Flex, you have to give your components a dimension.

But how can you make this dynamic?
If i want to use 1 control in 2 applications.
Both applications have different sizes and i want to fit the flex control in a html table.

Should i make the control dimensions flashvars?

drkstr
06-02-2008, 11:07 PM
In mxml you would set your dimensions to percentages:

width="100%" height="100%"

In Actionscript, you would use the percentWidth and percentHeight properties.


Best Regards,
~Aaron

wGrand
06-03-2008, 12:45 AM
You may also want to set maintainAspectRatio="true"