开发者

FLEX 4: importing html in spark with textarea TextConverter

开发者 https://www.devze.com 2022-12-30 14:59 出处:网络
I have imported a Html text into textarea using Textconverter and it works well, but I have a problem

I have imported a Html text into textarea using Textconverter and it works well, but I have a problem I need to mark with "image not found" if and image inside into imported html isn't more online or simply don't exist, so if anybody can help me...

Thanks

es.

            var string:String = '<img src="elvis.gif" />';
            aTextArea.textFlow = TextConverter.importToFlow(string, TextConverter.TEXT_FIELD_HTM开发者_C百科L_FORMAT);


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消