push multiple buttons in array

 var labelArr:Array = new Array();  
 for (i=1;i<50;i++){  
 labelArr.push("button"+i);  
 }  
 for(var i=0; i<labelArr.length; i++)  
 { trace(labelArr[i]);  
 }  

read more : https://github.com/asimkh/projects 
format your code: http://codeformatter.blogspot.ae/

0 comments:

Post a Comment