for (var i=1; i < 13; i++) {
var box = new kutu();
addChild(box);
}
the code it adds 12 times object called “box”… but if i want different names for each object?
for example make the name for each
name = "box_"+i;
for (var i=1; i < 13; i++) {
var box = new kutu();
addChild(box);
}
the code it adds 12 times object called “box”… but if i want different names for each object?
for example make the name for each
name = "box_"+i;
:: Copyright KIRUPA 2024 //--