Estoy siguiendo
Adobe escribió:
Código ActionScript :
package {
import flash.display.Sprite;
import flash.text.TextField;
public class TextWithImage extends Sprite {
private var myTextBox : TextField;
private var myText : String = "<p>This is <b>some</b> content to <i>test</i> and <i>see</i></p><p><img src=\"eye.jpg\" width=\"20\" height=\"20\"></p><p>what can be rendered.</p><p>You should see an eye image and some <u>HTML</u> text.</p>";
public function TextWithImage() {
trace(myText);
myTextBox = new TextField();
myTextBox.width = 200;
myTextBox.height = 200;
myTextBox.multiline = true;
myTextBox.wordWrap = true;
myTextBox.border = true;
addChild(myTextBox);
myTextBox.htmlText = myText;
}
}
}Todo lo que es el texto html lo muestra bien pero la imagen no la muestra. El trace muestra por la pantalla de salida:
Código :
<p>This is <b>some</b> content to <i>test</i> and <i>see</i></p><p><img src="eye.jpg" width="20" height="20"></p><p>what can be rendered.</p><p>You should see an eye image and some <u>HTML</u> text.</p>
La imagen con el resultado obtenido:
