When you enable html in a textfield, Flash adds a
bunch of formatting in HTML. If you trace the htmlText
property of the textbox in question, you'll get
something like:

<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT
FACE="Times New Roman" SIZE="8" COLOR="#000000"
LETTERSPACING="0" KERNING="0"><B>This is a
test</B></FONT></P></TEXTFORMAT>

If you trace the text property of that same textfield,
it won't count the HTML tags, so you'll get a number
less than what you'd expect from a string with HTML
formatting.

Lastly, when you enclose a string in the CDATA tag, it
converts things to HTML entities, which can confuse
things even more.

--- PR Durand <[EMAIL PROTECTED]> wrote:

> Hi list!
> 
> I have a text in a value, the text length is 502, I
> fill my htmlText 
> with it, the htmlText.length is 651.
> 
> Now I get the same text content from an xml file,
> within a CDATA node.
> trace (myNode.nodeValue.length)   // outputs 502, ok
> 
> I pass it through a localConnection to another
> flash, then I trace it
> trace (receivedText.length) // outputs 502, still ok
> 
> I fill my html enabled textfield with my content :
> myTF.htmlText = receivedText;
> trace (myTF.htmlText.textLength);  // Outputs 762
> !!!
> 
> 
> what are those 111 new caracters??? they don't
> appear, but make my 
> scroller appear :(
> 
> any idea please?
> ++
> PiR
> 
> 
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the
> archive:
>
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
> 



 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to