はDisplayObject型の配列を定義し、これに各オブジェクト(スプライト、ムービークリップ)を加えます。
あなたは、それらを削除する配列を反復処理して子を削除する:
// Adding object to the array
var objArray:Array; // this could be a field member
objArray = [];
// ... navigate to your XML file and get each entry
// ... after you create an object, add it
if(objArray.indexOf(obj1) < 0) // Make sure it is not there so we do not add it twice
objArray.push(obj1);
// Clearing...
for each (var obj1:DisplayObject in objArray)
{
obj1.parent.removeChild(obj1);
}
// when done, clear the array
objArray = [];