Yarin
Yarin

Reputation: 183499

Rich text in Flash TLF

How does one apply rich text to Flash at runtime? Specifically, I need to dynamically create bullet-points and paragraphs with line breaks.

Upvotes: 0

Views: 2008

Answers (2)

Chunky Chunk
Chunky Chunk

Reputation: 17217

if you're using the Text Layout Framework, you can convert your textFlow to import the TEXT_FIELD_HTML_FORMAT constant to achieve HTML text.

var textFlow:TextFlow = TextConverter.importToFlow(myText, TextConverter.TEXT_FIELD_HTML_FORMAT, myConfiguration);

Upvotes: 0

Samuel Neff
Samuel Neff

Reputation: 74899

Use a TextField and set it's htmlText property to the text with markup.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#htmlText

Upvotes: 2

Related Questions