This simple tutorial helps you determine number of lines in dynamic textfield. It is not a big problem with single line diplayed textfield but with multiple lines displayed it needs a little trick and that’s reseting height of a box to single line height. It is not affecting display of textfield but it resolves bug of returning number of lines in TextField with maxscroll property.
Anyway this example is brought to you by WhiteWeedow (http://mirko.highbox.net/) and here are the files
Dynamic TextField Line Counter - Actionscript Example
March 22, 2007 · 6 Comments
Categories: Actionscript 2 · Actionscript 2.0 · Flash · Flash _











6 responses so far ↓
SlowX // August 6, 2007 at 9:55 pm
So simple, yet so needed.
Thanks!
Director’s Lingo had all sorts of ways to select text. Flash seems to make this a bit tougher…
Vibecore // October 12, 2007 at 3:55 pm
Thanks for the tip, worked like a charm
theGeek // November 16, 2007 at 3:03 pm
Thanks for this, great little tip - saved me hours. I couldn’t believe that this wasn’t built in functionality…
Andy // December 19, 2007 at 5:48 pm
Oh, and did not know about it. Thanks for the information …
oskar // April 22, 2008 at 10:51 pm
Thanks a lot
Musty // May 25, 2008 at 12:56 pm
great file, thanks i was looking for this
Leave a Comment