Button visibility depending on size of external text file

I have a text field in an external movie into which i am loading external text files using a load vars object in the master movie. I have 2 scrollbuttons that i want to appear when the amount of text in the file exceeds the amount of text that can be displayed in the text field.

If anyone has any suggestions I’d appreciate it.

The AS i’ve been playing with is below - i cant seem to get it to work:( but as i dont have that much experiance there’s probably something really obvious i’m doing wrong.

//scroll btns visibility//////////////////////////////////////////

//max number of characters that fit in loadedInfo text field
var maxText:Number = 715;

var textCount:LoadVars = new LoadVars ();

//load variables from file that contains number of characters in text file to be loaded into loadedInfo text field

textCount.load(“text/meCharacters.txt”);

//proced only if variable has been loaded correctly
textCount.onLoad = function(success){
if (success){
trace (textCount)
btnVisibility();
}else{
this.loadedInfo.text = “error”;
}
}
trace (textCount)

//controll visibility with variables
function btnVisibility (){
if (maxText > textCount){
this.UpBtn._visible = false;
this.DnBtn._visible = false;
} else {
this.UpBtn._visible = true;
this.DnBtn._visible = true;
}
}