Ok I tried this code:
Code:
//Frame actions:
function loadText (btn) {
if (btn == "VON") {
loadVarsText = new loadVars();
loadVarsText.load("Somewebsite");
loadVarsText.load("Somewebsite");
loadVarsText.onLoad = function(success) {
if (success) {
trace("done loading");
teamText.text = this.VONTeam;
} else {
trace("not loaded");
}
};
}else{
trace("Failed");
}
}
//Button actions
on (release) {
_root.loadText(this._name); // This button is named VON in the library and also the instance name.
}
Of corse this is not working or I wouldn't be here. Thank you for helping .