RE: [Flashcoders] converting TextArea's scroll and bottomScroll tosubstring

2008-09-11 Thread Mendelsohn, Michael
Thanks Sebastian.  I'll try this.  The only concern I have is that the
font populating the TextField isn't fixed width, so I can't really be
sure what that cutoff point is, unless it could be suggested otherwise.
I mean, if the font was fixed width, I would know that a specific amount
of characters going across equals 1 line, and multiplied by so many
lines.  But, the font not being fixed width could have one line equal to
say 100 lowercase i's or maybe only 67 m's.

Any thoughts on that?

- MM

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] converting TextArea's scroll and bottomScroll tosubstring

2008-09-11 Thread Ian Thomas
Hi Michael,
  Take a look at the TextFormat method getTextExtent(). It's useful for
working out how much space text takes up, and copes with non-fixed-width.
Beware, though, that if you are using embedded antialiased fonts the
getTextExtent() calculations are very slightly off (as the calculations are
done using the non-antialiased version of the font).

HTH,
   Ian

On Thu, Sep 11, 2008 at 1:04 PM, Mendelsohn, Michael 
[EMAIL PROTECTED] wrote:

 Thanks Sebastian.  I'll try this.  The only concern I have is that the
 font populating the TextField isn't fixed width, so I can't really be
 sure what that cutoff point is, unless it could be suggested otherwise.
 I mean, if the font was fixed width, I would know that a specific amount
 of characters going across equals 1 line, and multiplied by so many
 lines.  But, the font not being fixed width could have one line equal to
 say 100 lowercase i's or maybe only 67 m's.

 Any thoughts on that?

 - MM

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders