List Info

Thread: flash textfield line count math




flash textfield line count math
user name
2006-11-02 18:51:47
I've sent this twice from the wrong account, let's see if I
can do  
better now:

It's time for one of those brainfarts.

I'm trying to position a textField's bottom in line with
other  
textfields; I've added leading to all the textField's so my
math is  
now off.

All the single-line textFields are positioned properly, but
the mutli- 
line textfields are not.

In the one I'm testing out with, the font size is 30, and
the leading  
is -10. So I did this:

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


What am I missing?
_______________________________________________
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 )