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…
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!
thank you in advance!