Would TextFormat.getTextExtent() be of help..?

(I know it says 'deprecated' in Flash 8 - that's a documentation error.)

Ian

On 5/2/06, Ash Warren <[EMAIL PROTECTED]> wrote:
I have always found that setting the textfield to autosize = "left" and
filling it one letter at a time checking the width at each loop works.  Then
when it goes over the max width, trim it by one letter and display the
field.

Just set the alpha to 0 or something to hide it while you do the loop then
set it back to 100 when it is done.  This way you can also dynamically
control when to show "more" links based on if there is still text left in
the "buffer" or original text string that hasn't been sliced and thrown in
the field.
_______________________________________________
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