hi joshua
thw for answer, but as I told Jah:
"yes, this is the reason why I have 651 instead of 502 in the 1st case.
but I search the difference between 651 and 762, after passing trough an
xml and a localConnection. I don't know wich one causes trouble "
I know this html tags add, but I find a second add after passing throug
a localConnection. It seems to be a format problem, but i guess
localConnection uses UTF-8, isn't it?
so where does it come from?
++
PiR
Joshua Sera a écrit :
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
_______________________________________________
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