Hi Danny,
My scroller is a home-made scroller, based on a content movieclip and a
mask movieclip.
It seems that the extra html added by flash to the text make the
textfield becoming higher...
I manually add a FONT tag to my text for the format, and flash gets to
add the LETTERSPACING="0" KERNING="0" in my own tag, and <P> tag before
and after the whole content.
but the strange thing is that he seems to add another P and FONT tag at
the end of the text, so that it gives:
<P ALIGN="LEFT"><FONT FACE="Standard_texte" SIZE="12" COLOR="#7C7C7C"
LETTERSPACING="0" KERNING="0">my 500 chars text</FONT></P><P
ALIGN="LEFT"><FONT FACE="Standard_texte" SIZE="12" COLOR="#7C7C7C"
LETTERSPACING="0" KERNING="0"></FONT></P>
the face, size and color properties are my manually added props, the
other one are added by flash and I don't why there are two times the
FONT and P tags.
++
PiR
Danny Kodicek a écrit :
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?
Flash HTML is a law to itself, but in your case I'm not sure why it matters.
You say 'it makes my scroller appear', but surely your scroller shouldn't
care how much html is in the field. It should only be based on the
difference between TextField._height and TextField.textHeight.
Danny
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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