Flash "/>

Texfield Wrangling

30 September 2005 at 1:59 am

Textfields in Flash are not all they could be to say the least. Today I spent 2 hrs trying to debug an application that does funky things to HTML in textfields. My conclusion this far: Flash is actually changing what I set the htmlText property to just as it pleases. No matter what SIZE I use in the FONT-tags, Flash will replace whatever my size with it’s own number - 11.

I’m inputting this HTML:

<P ALIGN="LEFT">
<FONT FACE="Helvetica, Arial, sans-serif" SIZE="18" COLOR="#000000" LETTERSPACING="0" KERNING="0">
<B>dcfg fdsgfd sgfdsgf ds</B>
</FONT>
</P>

For some reason this turns into this:

<P ALIGN="LEFT">
<FONT FACE="Helvetica, Arial, sans-serif" SIZE="11" COLOR="#000000" LETTERSPACING="0" KERNING="0">
<B>dcfg fdsgfd sgfdsgf ds</B>
<FONT SIZE="18">
</FONT>
</FONT>
</P>

Notice the font-tag at the end. My size info moved there? Anybody ever experienced something similar?

PS: if you think the HTML look ugly (non standard), this is the only kind of HTML that Flash is using. Capital letters on all tags and less than standard sizing to say the least.