I found where it came from...
Thanx for your help : while you asked for the ignoreWhite param, I was
quite sure that I had it to true, but I looked for the empty lines. And
the xml tag content finished with a new line, wich became 2 "newlines"
in flash, then a new <P> tag in the xml, and so a new FONT tag and I
earned about 60 chars...
I have to treat my file while writing the xml to close the CDATA tag
just after the last point.
++
PiR
Danny Kodicek a écrit :
> Hi Danny,
My scroller is a home-made scroller, based on a content
movieclip and a mask movieclip.
But doesn't the same principle apply?
It seems that the extra html added by flash to the text make
the textfield becoming higher...
Right - now I see the real issue at hand: you're getting an extra paragraph
added. Have you tried seeing if setting an ignoreWhiteSpace in your XML
object solves the problem? Also, have you made absolutely sure that the
extra line wasn't added at some other point (for example, by pressing enter
to input the line somewhere).
Alternatively, you could try pre-parsing the HTML using the XML object,
removing any empty tags (I've done this myself in the past) - of course, if
your text includes some empty <p> tags by design then this won't work.
Danny
_______________________________________________
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