[Flashcoders] way to get textFileld's line count?

2006-09-11 Thread grimmwerks
I've got textFields using html text that I need to get an accurate way of finding the line count...I got it working when I knew the size of the font attributed to that textField, but with one field it can have multiple formats. It's been a long tired weekend of sleepless coding, so I'm going to

Re: [Flashcoders] way to get textFileld's line count?

2006-09-11 Thread Andrey Scherbakov
var lineHeight:Number, linesCount:Number; var tf:TextField = yourTextField; with (tf) { autoSize = true; multiline = true; wordWrap = true; html = true; htmlText = some text at 1 line; } lineHeight = tf.textHeight; tf.htmlText = some html text . text ; linesCount =

Re: [Flashcoders] way to get textFileld's line count?

2006-09-11 Thread Josh Santangelo
textfield.maxscroll - [the number of lines it's displaying] -josh On Sep 11, 2006, at 8:28a, grimmwerks wrote: I've got textFields using html text that I need to get an accurate way of finding the line count...I got it working when I knew the size of the font attributed to that textField, but