29.12.2013, 17:37
create the objects in an array, like:
PHP код:
new SomeArray[10];
//creating the objects
SomeArray[0] = Createobj.....
SomeArray[1] = cre.....
//and so on till
SomeArray[9] = Creat.....
//then you can use a loop to destroy them.
for(new i=0; i<10; i++)
{
DestroyObject(SomeArray[i]);
}