Salve ragazzi,
avrei bisogno diun aiuto...
Ho bisogno di caricare immagini da un file txt.
Il caricamento avviene, riesco a gestire le coordinate x ed y ma non riesco a dare altezza e larghezza.
Dove sbaglio?
Vi posto codice.
Grazie mille![]()
System.useCodepage=true;
loadVariables("testi/flash.txt", "animato");
_root.createEmptyMovieClip("cont",1);
_root.cont._x = 235;
_root.cont._y = 23;
dati = new LoadVars();
dati.onLoad = function(success){
if (success){
_root.cont.loadMovie(dati.img);
this.path[prop + "_txt"].html = true;
this.path[prop + "_txt"].htmlText = this[prop];
this[prop] = prop.split("\r\n").join("");
}
else {
trace ("errore nel txt");
}
}
dati.load("testi/foto.txt");