I’m trying to set up this loop to run through the array and add the value of i to each element in the array.
Example: phone.tabIndex=1;
email.tabIndex=2
etc.
[COLOR=orangered]
tabArray = [phone, email, field1, field2, field3, field4, field5, field6, field7, dressBox, subjectBox];
Selection.setFocus(field1);
for (var i = 0; i<tabArray.length; i++) {
tabArray*.tabIndex =*+1;
}
[/COLOR]
When I do a
trace(field7.tabIndex);
it shows up 0
What am I doing wrong. Thanks