Loading external text and scrolling problem

Hi There

Can somebody please help me I have been searching the internet for 2 days solid trying to solve this problem. I have a dynamic text box with a custom scrollbar using a mask, which works without any problems, I wish to load in an external txt file using the basic html commands, I have managed to get it to work but the text doesn’t show until I scroll down. Once I have scrolled to the bottom, there is stiill more text waiting to appear.

The code I have used is as follows:


var myData:LoadVars = new LoadVars();
myData.load("info.txt");
myData.onLoad = function(success){
 if (success) {
mc2.mc2.html=true;
mc2.mc2.htmlText=this.content;
} else {
mc2.text = "no variables loaded";
 }
}
speed = .7;
mc2.setMask(mask);
createEmptyMovieClip("mc1", this.getNextHighestDepth());
setInterval(smoothscroll, 40);
function smoothscroll() {
mc1._y = speed*(mc1._y-(button._y+mc1._y*(button._height/mask._height)))+(button._y+mc1._y*(button._height/mask._height));
mc2._y = (1-mc2._height*mask._height)*mc1._y+mc2._height/2;
}

The code for the scroll bar is:


onClipEvent (load) {
_parent.mc2.mc2.autoSize=true;
_parent.mc2.mc2._y = -_parent.mc2.mc2._height/2;
this._x = Math.round(this._x);
a = this._x;
b = this._y;
}
on( rollover ){
 scrolling = "down";
 frameCounter = speedFactor;
}
on( release, releaseOutside ){
 scrolling = 0;
}
on (press) {
this.startDrag(false, a, b, a, _parent.mask._height-this._height);
}
on (release) {
this.stopDrag();
}
on (releaseOutside) {
this.stopDrag();
}

Thanks

James