Note that there are some explanatory texts on larger screens.

plurals
  1. POFlash is ignoring my most of my tags in a HTML TextField
    primarykey
    data
    text
    <p>I've been trying to figure out for a while now. I usually manage to make my textFields work properly, but this is just driving me nuts.</p> <p>I have this TextField that I inject HTML formatted text (contained in a XML file). For some reason, almost all my tags are ignored (<code>&lt;b&gt;</code>,<code>&lt;i&gt;</code>,<code>&lt;u&gt;</code>,<code>&lt;ul&gt;</code> and <code>&lt;li&gt;</code>). I can only get it to render <code>&lt;br /&gt;</code> tags properly. I could use a StyleSheet, but I don't think it would make my lists work...</p> <p>Here's how things are set up:</p> <p>Text I inject:</p> <pre><code>&lt;text&gt; &lt;![CDATA[&lt;b&gt;Some bold text &lt;/b&gt;and some normal text &lt;br/&gt;&lt;u&gt;This text is underlined&lt;/u&gt; normal text to compare&lt;br/&gt;&lt;i/&gt;This text is italic&lt;/i&gt;]]&gt; &lt;/text&gt; </code></pre> <p>How my TextField is set:</p> <pre><code>// When my Class' setup method is called, I set those properties _tf = _transcript.getTextFormat(); _tf.font = "Verdana"; _tf.size = 12; _transcript.embedFonts = true; _transcript.multiline = true; _transcript.autoSize = TextFieldAutoSize.LEFT; _transcript.wordWrap = true; // In an function, later on _transcript.htmlText = transcript; // transcript is a parameter. Basically, the XML I wrote above _transcript.setTextFormat(_tf); </code></pre> <p>I <strong>DO</strong> have Verdana embed (as well as the variants). I made sure by generating a size report <strong>and</strong> tracing Font.enumerateFonts(). If I output the textField's htmlText after having set it up, I get this:</p> <p><code>&lt;P ALIGN="LEFT"&gt;&lt;FONT FACE="Verdana" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"&gt;Some bold text and some normal text &lt;/FONT&gt;&lt;/P&gt;&lt;P ALIGN="LEFT"&gt;&lt;FONT FACE="Verdana" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"&gt;This text is underlined normal text to compare&lt;/FONT&gt;&lt;/P&gt;&lt;P ALIGN="LEFT"&gt;&lt;FONT FACE="Verdana" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0"&gt;This text is italic&lt;/FONT&gt;&lt;/P&gt;</code></p> <p>I'm really out of ideas on why nothing's working, if anyone had any idea, I'd really appreciate it!!</p> <p>Thank you</p> <p><strong>Edit:</strong> So I decided to test having no CDATA in my XML, and adding the <code>&lt;b&gt;</code> tag in my AS3 code. Didn't work either. I don't get how I can have my fonts correctly embed, but Flash refusing to use them.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload