0

我已经使用 Textconverter 将 Html 文本导入 textarea 并且效果很好,但是我有一个问题,如果导入的 html 中的图像不再在线或根本不存在,我需要用“找不到图像”进行标记,所以如果有人可以帮助我...

谢谢

es。

            var string:String = '<img src="elvis.gif" />';
            aTextArea.textFlow = TextConverter.importToFlow(string, TextConverter.TEXT_FIELD_HTML_FORMAT);
4

1 回答 1

0

I don't think this is an option that comes out of the box with TLF.

If I were you, I would check first if the image exists using URLLoader. If it doesn't exist, replace your img tag in your string with an error message.

于 2010-05-19T09:03:12.817 回答