Allora, seguendo un tutorial sono arrivato a questo punto:


var Testo:TextField;

var myVars = new LoadVars();
myVars.onLoad = function(ok) {
if (ok) {
contenitore.Testo.htmlText = myVars.testo;
contenitore.Testo.autoSize="left";
}else{
contenitore.Testo.htmlText ="errore nel caricamento tel testo";
}
};
myVars.load("testo.txt");

velocita = 3;
spazio = 16;
frizione = 1;

y = barra._y;
top = contenitore.Testo._y;
bottom = contenitore.Testo._y+mask_mc._height-contenitore.Testo._height-spazio;
barra.onPress = function() {
drag = true;
this.startDrag(false, this._x, this._parent.y, this._x, this._parent.y+this._parent.guidaBarra._height-this._height);
barra.scrollEase();
};
barra.onMouseUp = function() {
this.stopDrag();
drag = false;
};
guidaBarra.onPress = function() {
drag = true;
if (this._parent._ymouse>this._y+this._height-this._parent.barra._height) {
this._parent.barra._y = this._parent._ymouse;
this._parent.barra._y = this._y+this._height-this._parent.barra._height;
} else {
this._parent.barra._y = this._parent._ymouse;
}
barra.scrollEase();
};
guidaBarra.onMouseUp = function() {
drag = false;
};
movimentoBarra = function (d) {
if ((barra._y>=y+guidaBarra._height-barra._height && d == 1) || (barra._y<=y && d == -1)) {
clearInterval(myInterval);
} else {
barra._y += d;
barra.scrollEase();
updateAfterEvent();
}
};
pulsUp.onPress = function() {
myInterval = setInterval(movimentoBarra, 18, -1);
};
pulsDown.onPress = function() {
myInterval = setInterval(movimentoBarra, 18, 1);
};
pulsUp.onMouseUp = pulsDown.onMouseUp=function () {
clearInterval(myInterval);
};
MovieClip.prototype.scrollEase = function() {
this.onEnterFrame = function() {
if (Math.abs(dy) == 0 && drag == false) {
delete this.onEnterFrame;
}
r = (this._y-y)/(guidaBarra._height-this._height);
dy = Math.round((((top-(top-bottom)*r)-contenitore.Testo._y)/velocita)*frizione);
contenitore.Testo._y += dy;
};
};


Purtroppo il problema rimane, il testo del mio file esterno ancora viene tagliato a seconda dell'altezza del mio campo di testo dinamico, il campo non si ridimensiona a seconda dei dati inseriti nel file .txt esterno.
Dove sbaglio?