for (var j:int=0;j<achievFront.numChildren;j++){ achievFront.removeChildAt(j); } trace(achievFront.numChildren);