Cyberspace Nova

Dynamic TextField Line Counter - Actionscript Example

March 22, 2007 · 6 Comments

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

SWF
FLA

Categories: Actionscript 2 · Actionscript 2.0 · Flash · Flash _

6 responses so far ↓

Leave a Comment