salve a tutti
sto usando uno script per caricare thumbs e foto tramite file di testo...
andava bene ma adesso ho la necessità di aggiungere anche una didascalia agli ingrandimenti...
dunque prima era così e funzionava bene(tralascio le parti non necessarie al caso..)



loadVariables("store.txt", this);
this.onData = function() {
miniature = new Array();
miniature = nomifoto.split(",");
createEmptyMovieClip("mc_foto", 1);
setArray(0);
};
// Formazione miniature
function setArray(pT) {
galleria = new Array();
for (var m = 0; m<pS; m++) {
galleria[m] = [ ];
for (var n = 0; n<pR; n++) {
galleria[m].push(miniature[pT++]);
}
}
tabelle(70, 8, 60, 60);
}
// Movieclips set
function tabelle(posX, posY, pB, pW) {
for (i in this.mc_foto) {
if (typeof (this.mc_foto[i]) == "movieclip") {
this.mc_foto[i].removeMovieClip();
}
}
profondita = 0;
for (var i = 0; i<galleria[0].length; i++) {
for (var j = 0; j<galleria.length; j++) {
nName = "block_"+i+"_"+j;
this.mc_foto.attachMovie("contclip", nName, profondita++);
this.mc_foto[nName].nummer = i;
this.mc_foto[nName].fotoname = "store/"+galleria[j][i];
this.mc_foto[nName]._x = posX+pB*i*1.2;
this.mc_foto[nName]._y = posY+pW*j*1.2;
};
this.mc_foto[nName].onRelease = function() {

this._parent._parent.createEmptyMovieClip("conteni tore", 10000);
this._parent._parent.contenitore.attachMovie("thum bs", "ingrandimento", 1);
this._parent._parent.contenitore.ingrandimento.fot oname = this.fotoname;
this._parent._parent.contenitore.ingrandimento._x = 230;
this._parent._parent.contenitore.ingrandimento._y = 278;
};
}
}
}
var lato:Number = 0;


pensavo di correggere il file di testo da cosi
nomifoto=01.jpg,02.jpg, etc
a così
nomifoto=dida1|01.jpg,dida2|02.jpg, etc

considerando che il mio campo di testo creato sul root si chiama didatxt lo script diventerebbe quindi...

loadVariables("store.txt", this);
this.onData = function() {
miniature = new Array();
dida = new Array();
dida = nomifoto.split("|");
miniature = nomifoto.split(",");
createEmptyMovieClip("mc_foto", 1);
setArray(0);
};
function setArray(pT) {
galleria = new Array();
for (var m = 0; m<pS; m++) {
galleria[m] = [ ];
for (var n = 0; n<pR; n++) {
galleria[m].push(miniature[pT++]);
}
}
tabelle(70, 8, 60, 60);
}

function tabelle(posX, posY, pB, pW) {
for (i in this.mc_foto) {
if (typeof (this.mc_foto[i]) == "movieclip") {
this.mc_foto[i].removeMovieClip();
}
}
profondita = 0;
for (var i = 0; i<galleria[0].length; i++) {
for (var j = 0; j<galleria.length; j++) {
nName = "block_"+i+"_"+j;
this.mc_foto.attachMovie("contclip", nName, profondita++);
this.mc_foto[nName].nummer = i;
this.mc_foto[nName].fotoname = "store/"+galleria[j][i];
this.mc_foto[nName]._x = posX+pB*i*1.2;
this.mc_foto[nName]._y = posY+pW*j*1.2;
this.mc_foto[
this.mc_foto[nName].onRelease = function() {
this.didatxt.text = dida[nName];
this._parent._parent.createEmptyMovieClip("conteni tore", 10000);
this._parent._parent.contenitore.attachMovie("thum bs", "ingrandimento", 1);
this._parent._parent.contenitore.ingrandimento.fot oname = this.fotoname;
this._parent._parent.contenitore.ingrandimento._x = 230;
this._parent._parent.contenitore.ingrandimento._y = 278;
};
}
}
}
var lato:Number = 0;


ovviamente non funziona(non carica un accidente di testo..)...qualcuno mi può dare una mano per indirizzarmi sulla "retta via" ???

grazie