I want 20 objects created in a for loop but cant use the variable to name the object.
- Code: Select all
client.bigDB.loadMyPlayerObject(function(obj:DatabaseObject):void{
for(var i=0;i<=20;i++) {
obj.part[i] = {1:"0", 2:"0", 3:"0", 4:"0"};
}
obj.save();
});
Thanks