Skip to main content
Inspiring
Dec 19, 2009 10:04 PM UTC
Answered

single line autoSize

Although amazing but I must confess that i's really confusing for me to relate all these span and paragraphs to each other in my mind and most of the time I mix everything up...

anyway, here's what I don't seem to be finding anywhere not even in documentations... or maybe I'm searching for it in a wrong place?

All I wanna do is to create a single line of textFlow and its width will be adjusted automatically based on the text being put in it... I remember the old days and how easilly I used to manage that with the TextField!

besides that, that would be great to know how to make a textFlow multiline and autoSize also...? I know my mind has still the shape of TextField construction... I hope I can digest this TextLayout framework

This topic is closed to new replies. Start a new post to keep the conversation going.
robin_briggsCorrect answer
Adobe Employee
Dec 21, 2009 5:42 PM UTC

Best way to avoid the large size is to link it as an RSL. That way it just downloads once. The Flex SDK is set up this way now, you can look there for examples of how to do it.

2 replies

emstrisAuthor
Inspiring
Dec 19, 2009 10:35 PM UTC

I think I f ound the answer... I should use NaN in:

new ContainerController(_myLabel, NaN, NaN);

but, hey, I just noticed onething.. my swf size has increased to 177kb!!! without the TLF it was something around 40kb. is there anyway we can be a bit more friendly with the size?!

Translate
robin_briggsCorrect answer
Adobe Employee
Dec 21, 2009 5:42 PM UTC

Best way to avoid the large size is to link it as an RSL. That way it just downloads once. The Flex SDK is set up this way now, you can look there for examples of how to do it.

Translate