This content has been marked as final. Show 5 replies
you can count the number of line breaks but that won't help you unless you're sure each new line is caused by a line break. (and that's not usually the case.)
you can use the textfield properties to determine whether you need to use a scrollbar. is this as2 or as3?
var myVar = my_txt.text.split("\n").length;
var myVar = my_txt.text.split("\r").length;
But both return different results. I gues I'm trying to count the number of lines of text.
use your textfield's maxscroll property to determine if you need a srollbar. ie, maxscroll>1.
Man, I feel stupid. I knew I was making it way more complicated than it should be. Thanks.