Skip to main content
Participant
May 6, 2010
Question

Need Your help About TLFTextField Can't be load picture in Flash CS5

  • May 6, 2010
  • 2 replies
  • 549 views

I write code like this . but DynamicText is run , TLFTextField dosn't work only have text show .
left is TLFTextField , Pictures can not show . right is DynamicText , it's work .

I'm using Flash cs5 .

code:

// ***************************************************

import fl.text.TLFTextField;
import flashx.textLayout.formats.TextLayoutFormat;
import flashx.textLayout.elements.TextFlow;

var source:String ="Abcd <IMG SRC='images/1_wilma.png' width='123' height='180'/> DEF";

var myTLFTextField:TLFTextField = new TLFTextField();
  addChild(myTLFTextField);
  myTLFTextField.x = 10;
  myTLFTextField.y = 10;
  myTLFTextField.width = 300
  myTLFTextField.height = 500;
  myTLFTextField.htmlText = source;

DynamicText.htmlText = source;

// ***************************************************

This topic has been closed for replies.

2 replies

Participating Frequently
May 7, 2010

Howdy,

I was not able to replicate this. Can you please provide a FLA file and the image used so I can try it?

Thanks,

Craig

孙海智Author
Participant
May 15, 2010

Thank your help and I already fix it ,it is because Flash CS5 's English version have a bug , I used chinese Version is work .

孙海智Author
Participant
May 7, 2010

Help me ..Thanks your .