i need to include a text that is in a external file (txt). I can call him from the _root, but when i try to do the load from one movieClip it doesn’t work.
this is the code that i put in the button:
on (release) {
loadText = new LoadVars();
loadText.load(“data.txt”);
loadText.onLoad = function() {
texto.text = this.historia;
location.text = this.location;
};
}
thanks in advanced!