[MX 2004] onRelease dynamically loaded text

Hi everybody!
here’s my problem:
I have a menu list, and I want that when I click on an item, an instance of a movie clip from the library is loaded in the stage and that a specific title and content (dynamically loaded text from a .txt file) are loaded into that instance.
I found out how to do the first part of the process, but I still don’t know how to get the dynamic text, and then put it in its place… :m:

here’s my code:

mContatti.onRelease = function() {
_root.quadro.attachMovie(“finestra”, “finestra”, 1, {_x:-300, _y:-300});
_root.quadro.finestra.testo.titolo.text = “Contatti”;
}

everything well…

I’ve tried this, but it doesn’t work:

mContatti.onRelease = function() {
_root.quadro.attachMovie(“finestra”, “finestra”, 1, {_x:-300, _y:-300});
_root.quadro.finestra.testo.titolo.text = “Contatti”;

** loadText = new loadVars();
loadText.load(“discografia.txt”);
loadText.onLoad = function() {
_root.quadro.finestra.testo.txtField.text = this.discografia;
};**
}

Now I don’t know what to do! :expressionless:
thank you in advance!

look at xml tutorials…

[QUOTE=randomagain;2351893]look at xml tutorials…[/QUOTE]

Thanks for your reply, I’ve looked at several xml tutorials, but I’m not working with an xml
(maybe should I??)

yes, you really should.

You should stop using _root too.

Share your file . .

[QUOTE=sekasi;2351911]yes, you really should.

You should stop using _root too.[/QUOTE]

tack… I still have a lot to learn!
I’ll use _level0 instead of _root…