ho sullo stage del filmato principale "home.swf" un mc vuoto con istanza storialoader.
sulla timeline pongo:
loadMovie("storia.swf",this.storialoader);
in storia.swf carico le var da un file txt
dati = new LoadVars();
dati.onLoad = function(ok) {
if (ok) {
testo.text = this.storia;
} else {
testo.text = "Errore di lettura";
}
};
dati.load("storia.txt");
fin qui tutto ok...in storia.swf c'è anche la variabile "history".
se metto
testo.text = this.history;
mi carica quella variabile
il problema è se voglio cambiare quella variabile dal filmato principale al click di un bottone...
metto:
on (press) {
_root.storialoader.testo =_root.storialoader.history;
}
e non funzia (undefined)...come fare?![]()
grazie![]()

Rispondi quotando
