more actionscript help
more actionscript help
Out of context: Reply #1
- Started
- Last post
- 10 Responses
- monNom0
myArray.length
returns numer of items in myArray
so a for loop with less than myArray.length as the condition should work for you.
as for naming, just append your incremental variable to the end. egfor ( i=0; i < myArray.length; i++){
this.attachMovie("button", "button" + i, i);
this["button" + i]._x = i*10;
}probably some syntax errors in there, my AS is a bit rusty.