Skip to main content
Participant
August 30, 2010
Question

HTML tags in TLF (slice to 2 text fields)

  • August 30, 2010
  • 2 replies
  • 1234 views

i create on stage TLF and i slice to 2 text fields
i put text to TLF in actions tText.htmlText = "Some text...."
if text is too much, text from 1 text field is not displayed
in 2 text field. All is displayed only in 1 text field

if i add text from tText.text is displayed in 1 and 2 text field.

how to make to text with html tags displayed in 1 and 2 text field?

This topic has been closed for replies.

2 replies

December 7, 2010

I have this exact same problem and it is driving me UP THE WALL. It's should be so simple yet it just doesn't work.

Is it a bug?

If so, will it be fixed?

Here it is in more detail...

http://forums.adobe.com/thread/762325?tstart=0

August 31, 2010

This looks to me like a bug in TLFTextField. I'll report this bug to the Flash Authoring team.

You could use this as a workaround - find all of the containers that should be attached to the flow, set htmlText then reattach the containers (past the first):

var controllerArray:Array = new Array() for (var i:int = 0; i < myText.textFlow.flowComposer.numControllers; i++) {      controllerArray = myText.textFlow.flowComposer.getControllerAt(i); } myText.htmlText = "some text that should be flowing into the other containers"; for (i = 1; i < controllerArray.length; i++) {      myText.textFlow.flowComposer.addController (controllerArray); } myText.textFlow.flowComposer.updateAllControllers();

artibajAuthor
Participant
September 12, 2010

Ok

thanks