This is the script i have added to a button:
on(release){
for(j=0;j<50;j++){
for(i=0;i<15;i++){
if(_root.boxno.text==box+j){
trace("FOUND"
}
}
}
}
i have loads of arrays set up named box1, box2, box3 etc etc
please can somebody tell me the correct syntax for this if statement. I know its something to do with the 'j' but i cant work out how to fix it.
thanks in advance
on(release){
for(j=0;j<50;j++){
for(i=0;i<15;i++){
if(_root.boxno.text==box+j){
trace("FOUND"

}
}
}
}
i have loads of arrays set up named box1, box2, box3 etc etc
please can somebody tell me the correct syntax for this if statement. I know its something to do with the 'j' but i cant work out how to fix it.
thanks in advance