Friday, July 13, 2007

Text_Auto Size.fla



myText.autoSize = true;

_root.myContent.loadContent.loadMovie("");
function loadMySWF() {
//trace("yes");
}

this.loadMyText = new LoadVars();

this.loadMyText.parentObj = this;

this.loadMyText.onData = function(raw) {

myText.htmlText = raw;
myText._y -= 1;
if (myText._y<=-myText._height+5) {
trace("work");
myText._y = 0;
}
};

this.loadMyText.load("news.txt");
trace(myText._height);
trace(myText._y);

No comments: