This is a very geeky technical post. If you are not a very geeky technical person, feel free to skip it. If you are a very geeky technical person, but you're too l33+ for Flash, also feel free to skip it.

Macromedia sez here:

To embed a JPEG or SWF file in a text field, specify the absolute or relative path to the JPEG or SWF file in the <img> tag's src attribute. For example, the following code inserts a JPEG file that's located in the same directory as the SWF file:

textField_txt.htmlText = "<p>Here's a picture from my last vacation:<img src='beach.jpg'>";

This thing I am doing exactly as written. However, a trace performed on textField_txt.htmlText immediately afterward reveals that it has the value:

<P ALIGN="LEFT"><FONT FACE="Times New Roman" SIZE="12" COLOR="#000000">Here's a picture from my last vacation:</FONT></P>

And that the img tag has vanished completely.

Does anyone know what's happening here? My forehead will soon be bruised from being beaten against the desk.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
.
Powered by Dreamwidth Studios

Style Credit

Expand Cut Tags

No cut tags