Hi there, I was wondering if there was a way to create an object in a for loop (ActionScript 3)
Code:
var gridpiece=function(){}
gridpiece.prototype.disx;
gridpiece.prototype.disy;
//Yes I do my classes inside the document
var gridpiece1=new gridpiece
//end
So, what if I wanted to create 40 gridpieces in a for loop? How would that be done?