Is there a way to get the measured-width of a button label in flex based on its style properties at runtime?
A:
I'm assuming you meant TextField
, rather than String
. So for TextField
, make sure you set the autoSize
property to something other than TextFieldAutoSize.NONE
. Then you can simply grab the width
value.
Jeremy White
2009-08-18 01:09:59
A:
Not on it's style properties. It does expose regular properties which give this information though.
Gregor Kiddie
2009-08-18 07:42:12