I did not know how to phrase the name, so I'm sorry about that. If you have a better name offer, let me know and I will change it.
I have a piece of text that displays as HTML in a TextField. An example of this text:
1
<font size="30" color="#FF0000">When your only tool is a hammer, all problems start looking like nails.</font>
</br>
2
<i>99 percent of lawyers give the rest a bad name.</i>
<b>Artificial intelligence is no match for natural stupidity.</b>
<u>The last thing I want to do is insult you. But it IS on the list.</u>
</br>
3<showimage=Images/image1.jpg>
I don't have a solution, but I do admire the problem.
The only substitute for good manners is fast reflexes.
Support bacteria - they're the only culture some people have.
</br>
4
Letting the cat out of the bag is a whole lot easier than putting it back in.
Well, here I am! What are your other two wishes?
Run codeHide resultMost tags are basic, designed to display what I can do with formatting. However, since Adobe Air has a sandbox that prevents embedded images (via a tag <img src='foo.png'>
), I had to come up with a different way to display images.
, - , , , , . , - , - .
<showimage=Images/image1.jpg>
. y , TextField HTML . , y- ( getCharBoundaries
), , .text
.htmlText
. TextField .htmlText
, , .
y, HTML, , y - , , y, .
y HTML HTML?
, , - &&&&&showImage=Images/image1.jpg&&&&
, , , , , .