views:

400

answers:

1

hi to all,

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_HTML_FORMAT);
A: 

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.

PeZ
thanks for the answer but this will mean:- parse html and find img tag- then replace tag with "image not found/ not online"- and import in textArea
Yes, that's how I would do it
PeZ