In the following code, I want to concatenate the data in array arr1 with string value in variable t.
var t:String;
var arr4:Array = new Array();
for(w;w<i;w++){
if(max==arr3[w]){
t=t.concat(",",arr1[w])
}
}
trace(t);
But I get this error:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at final1_fla::MainTimeline/modebtn()
Can anyone help me?