List Info

Thread: flash textfield line count math




flash textfield line count math
user name
2006-11-03 08:17:18
g schafer wrote:
> lineCount = (txt._height/(font.size + font.leading))
>
> This never works for my example, ie ht = 70, size = 30,
leading = 
> -10    ie  70/(30+-10) == 1.6

Hi,

shouldn't you be using the actual height of the text instead
of the 
container's height?
TextField.textHeight
<htt
p://www.adobe.com/support/flash/action_scripts/actionscript_
dictionary/actionscript_dictionary774.html>

Best,
Wille
_______________________________________________
dirGames-L mailing list  -  dirGames-Lnuttybar.drama.uga.edu
http://nuttybar.drama.uga.edu/mailman/listinfo/dirgames
-l
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )