risolto....
ERRORE DI PERCORSO
siccome il file principale sta nella root del sito e il file rose.SWF sotto la cartella "main1", l'istruzione prende il percorso dalla root, quindi la posto di
Dati.load ('a.c. skunk.txt')
bisogna mettere il percorso relativo alla root
Dati.load('main1/ a.c. skunk.txt')
risolto una cosa ,
vorrei sapere come poter evitare una lista cosi' linga essendo 25 campi g1..gn
e 25 campi prezzo1...prezzon
codice:
ed avere un listato come quello sotto......
stop();
foto.loadMovie("utenti/foto1.jpg");
var squadra = "A.C. Skunk";
Dati = new LoadVars()
Dati.onLoad = function(){
g1.text = this.g1;
g2.text = this.g2;
g3.text = this.g3;
g4.text = this.g4;
g5.text = this.g5;
g6.text = this.g6;
g7.text = this.g7;
g8.text = this.g8;
g9.text = this.g9;
g10.text = this.g10;
g11.text = this.g11;
g12.text = this.g12;
g13.text = this.g13;
g14.text = this.g14;
g15.text = this.g15;
g16.text = this.g16;
g17.text = this.g17;
g18.text = this.g18;
g19.text = this.g19;
g20.text = this.g20;
g21.text = this.g21;
g22.text = this.g22;
g23.text = this.g23;
g24.text = this.g24;
g25.text = this.g25;
prezzo1.text = this.prezzo1;
prezzo2.text = this.prezzo2;
prezzo3.text = this.prezzo3;
totale.text = this.totale;
}
Dati.load('main1/a.c. skunk.txt' )
io avevo pensato ad una cosa del genere ma non funziona...
codice:
stop();
var dateVars = new LoadVars();
dateVars.onLoad = function(ok) {
if (ok) {
for(var i = 1; i < 25; i++){
g[i].text = dateVars.g[i];
prezzo[i].text = dateVars.prezzo[i];
} //fine ciclo for
}
};
dateVars.load("nextart.txt");
dove sta l'errore?
grazie a chi voglia rispondermi.....