Skip to main content
Participant
October 28, 2008
Question

Displaying an image to a TextField with the 'img' tag

  • October 28, 2008
  • 1 reply
  • 372 views
Hi,

it is possible to display an image in a TextField by using html and the img-tag. The image is identified by an URI:

textField.htmlText = 'An image: <img src="c:\\myImage.png">';

Now here's my question: Is it possible to refer an image which is in the same .swf-file as the code?

Thanks,

Andreas
This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
October 28, 2008
yes.

convert your image to a movieclip, assign a class and use that class as the image source.