Non riesco a capire se per quello che devo fare io una soluzione del genere potrebbe essere utile



Array + set variable

Hi,

I have a loaded textfile...

&file1=number1&file2=number2&file3=number3&max= 3&

in my flash movie after the textfile has been loaded I have,

myitems = new Array();
for (i=1; i<_level0:max; i++) {
textbox.duplicateMovieClip("textbox"+i, i+10);
value = eval("file"+i);
setProperty ("textbox"+i, _x, 7);
setProperty ("textbox"+i, _y, 132);
set ("textbox"+i.filename, value);
trace ("textbox"+i);
myitems.push(value);
}

This duplicates a movie clip (which containes a textfield called 'filename') and what I thought/want to happen, is the current value from each number1, number2 etc. gets populated into each duplicated movie.



OPPURE



for (i=1; i<_level0:max; i++) {
duplicateMovieClip("textbox", "textbox"+i, i);
setProperty ("textbox"+i, _x, 7*i);
setProperty ("textbox"+i, _y, 132*i);
this["textbox"+i].filename = this["file"+i];
trace ("textbox: "+ this["textbox"+i].filename);
myitems.push(value);
}

Grazie Mille Sono un programmatore che non capisce un tubo di ActionScript e lo vorrebbe impare, certo immagino che non parto da cose facili, ma ho bisogno di questo.

Grazie Mille