Se ho capito bene è come scrivere
codice:
carrello_dati=new Array() carrello_dati[1]="scarpe"
carrello_dati[2]="ciabatte"
carrello_dati[3]="scarponi"
carrello_desc=new Array()
carrello_desc[1]="ginnastica"
carrello_desc[2]="tennis"
carrello_desc[3]="calcio"
carrello_desc[4]="mare"
carrello_desc[5]="casa"
carrello_desc[6]="street"
carrello_desc[7]="sci"
carrello_desc[8]="rampicata"
carrello_desc[9]="freelander"
matrix=new Array(carrello_dati, carrello_desc) ???
però la mia AS mi da "undefined"
codice:
i=1;id=0
this.onEnterFrame=function(){
if(i<=2){
for(j=1; j<=4; j++){
id++
mesg.html=true
mesg.htmlText+=matrix[carrello_dati[i],carrello_desc[id]]
trace(mesg.htmlText)
}
mesg.htmlText+="
"
i++
}else{delete this.onEnterFrame}
}