So let me ask it this way, if i am using the scrollbar component from a previous flash version, and i want to find out if the text box is full, how can i do that in MX / version 7? Thanks!
So i figured it out. I moved the textbox to a few frames sooner than when
maxscroll
starts checking and then it worked. Even though i had the script below the text loading, it still didn’t have enough time to load. Basically i load the text into the box and then a few frames later i test the box to see if it needs the scroller. Hopefully that will help some other poor soul.
my_data = new LoadVars();
my_data.onLoad = function(success){
if(success){
my_textfield.text = this.myVar;//assign the content of the textfile to the textfield
trace(my_textfield.maxscroll);//at this point you can make sure the file has been loaded
}
}
my_data.load("my_file.txt");