void removeUnusedPlaceobjs(FrameObject frameObj){
// foreach(int removeObjDepth in frameObj.removedObjectDepths){
// DisplayObject displayObj = _depth_displays[removeObjDepth];
// if(displayObj!=null){
// recycleDisplayCache(removeObjDepth, displayObj);
// }
// _depth_displays[removeObjDepth] = null;
// }
bool[] modified = new bool[_depth_displays.Length];
for(int i=modified.Length - 1; i>=0; i--)
modified[i] = false;
// frameObj.reset();
// for(int i=0; i<frameObj.placeObjectCount; i++){
// PlaceObject placeObj = frameObj.nextPlaceObject();
for(int i=0; i<frameObj.placeObjects.Length; i++){
PlaceObject placeObj = frameObj.placeObjects[i];
modified[placeObj.depth] = true;
}
for(int i=modified.Length-1; i>=0; i--){
if(!modified[i]){
DisplayObject displayObj = _depth_displays[i];
if(displayObj!=null){
recycleDisplayCache(i, displayObj);
}
_depth_displays[i] = null;
}
}
}