Looking to convert the following attachMovie actions to a for loop. I get an error message running the following loop and I’m not sure what the correct syntax is. Takers?
From this:
this.mc01.attachMovie(“timebar01”,“timebar01”,5,{_x:0, _y:450});
this.mc02.attachMovie(“timebar02”,“timebar02”,6,{_x:0, _y:450});
this.mc03.attachMovie(“timebar03”,“timebar03”,7,{_x:0, _y:450});
this.mc04.attachMovie(“timebar04”,“timebar04”,8,{_x:0, _y:450});
To this:
for (var i = 1; i < 5; i++) {
this.[“mc0”+i].attachMovie(“timebar0”+i,“timebar0”+[i+4], i, {_x:0, _y:450});
}
TIA