Salve a tutti ho un problema con questo for:
non riesco a passare al pulsante btn "urlvolo[i]" ma in tutti i pulsanti "urlvolo2" ha valore dell'ultimo elemento. Perchè? e come posso risolvere il problema?codice://ret cilp contenente un rettangolo // pulsante vuoto for (i=0; i<=idvolo.length-1; i++) { attachMovie("pul", "Pul_btn"+i, i+7); btn = this["Pul_btn"+i] btn._x = 30; btn._y =60*i+10; urlvolo2 = urlvolo[i]; btn.onPress =function(){ getURL("http://"+urlvolo2); } }
Grazie![]()

Rispondi quotando