How should I customize the code to work in mx 2004

this code was in one of the tutorials for loading external text with buttons, but it does not work in mx 2004. any suggestions? thanks, Kinga

loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}