mi potresti aiutare ho fatto così... ma c'è qualcosa che mi sfugge:
tutte le varibili si chiamo con nome + numero che va a scalare quindi news_0 news_1 ecc... :master:codice:stop(); dati = new LoadVars(); dati.path = this; dati.onLoad = function(success) { if(success){ this.path.numero_news = this.numero_news; var i2:Number = numero_news while (i2>=0) { this.path.["news_" + i2] = this.["news_" + i2]; --i2 } gotoAndPlay(2); } else { trace("Variabili non caricate"); } }; dati.load("news.txt");

-
Rispondi quotando