[Flashcoders] Determine text overflow

2006-05-02 Thread Ryan Creighton
Hi folks. Sorry if this issue is old hat - i've been reading through the archives and can't find a solution. i have a dynamic text field set to a certain size (picture a dialogue box at the bottom of an adventure or RPG game). i'm feeding it text. i'd like to determine when the text

RE: [Flashcoders] Determine text overflow

2006-05-02 Thread Ash Warren
PROTECTED] On Behalf Of Ryan Creighton Sent: Tuesday, May 02, 2006 11:27 AM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Determine text overflow Hi folks. Sorry if this issue is old hat - i've been reading through the archives and can't find a solution. i have a dynamic text field

Re: [Flashcoders] Determine text overflow

2006-05-02 Thread Ian Thomas
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

RE: [Flashcoders] Determine text overflow

2006-05-02 Thread Tom Lee
:[EMAIL PROTECTED] On Behalf Of Ash Warren Sent: Tuesday, May 02, 2006 12:37 PM To: 'Flashcoders mailing list' Subject: RE: [Flashcoders] Determine text overflow 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