• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

single line autoSize

Participant ,
Dec 19, 2009 Dec 19, 2009

Copy link to clipboard

Copied

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

TOPICS
Text layout framework

Views

617

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Dec 21, 2009 Dec 21, 2009

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.

Votes

Translate

Translate
Participant ,
Dec 19, 2009 Dec 19, 2009

Copy link to clipboard

Copied

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?!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Dec 21, 2009 Dec 21, 2009

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines