I noticed some chatter on the list about determining lines in TextFields,
etc., and I thought I'd mention that I just posted a new TextMetrics class
on my blog that'll help figure out:

- x/y coordinates and width/height of each line of text
- x/y coordinates and width/height of any substring (very useful for
positioning things around or on certain strings in a dynamic or input
TextField)
- each line of text (for seeing where the line breaks are)

It's probably overkill for many applications, but it was indispensable on a
recent project I worked on, so I figured I'd pass it along.

There's a visual sample and some brief documentation on the site.

http://www.greensock.com/ActionScript/TextMetrics/

Hope some folks find it useful.

Jack Doyle

PS TweenLite & TweenFilterLite were recently updated as well to make
sequencing more intuitive.


_______________________________________________
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

Reply via email to