Flash TextField <img>

 Jan, 31 - 2009   2 comments   Uncategorized

This wasn’t the first time I struggled to incorporate <img> tag support into a project, but it might be the last. The bugs with this “feature” are so bad, that for all but the simplest of cases (and some of those), it’s rendered completely useless. Today, I worked around another problem with links exhibiting wild […]


Continue Reading


Update: had to take another look at this due to Flash busting my character entities! In the last installment, I showed you a function that will walk through an XML node’s (multi-part) children and return an HTML string. This approach is unfortunately flawed — whitespace collapsing is a bit over-eager resulting in XML such as […]


Continue Reading


UPDATE: I managed to forget TextField.condenseWhite = true! Now, although that will handle 90% of your XML -> HTML whitespace issues. There are a few scenarios where the hints in this series come in handy: You want more control over XML -> HTML tag handling. For instance you want to avoid an extraneous wrapping tag. […]


Continue Reading


My last post on this subject outlined a pretty good solution to this problem. I had one minor annoyance, and the further I chased it, the further from my original solution I drifted. Tail-ing the Flash debug log works great. It’s fast, simple, easy to set up — but I wasn’t quite satisfied. I wanted […]


Continue Reading