I am doing a program where I am creating instances by arrays but I am not sure on how to get rid of them later.. to explain more clearly here is my code:
(I quickly whipped up an example...so that's why there is only one variable in the code)
for (var q:int = 0; q < caw1.length; q++)
{
addChild(caw1[q]);
caw1[q].x = 9;
caw1[q].y = 833;
}
half2.addEventListener(MouseEvent.CLICK, nxt2);
function nxt2(e:MouseEvent)
{
removeChild(half2);
removeChild(caw1[1]);
half2.removeEventListener(MouseEvent.CLICK, nxt2);
}