我遇到了问题,每当我尝试从数组中删除一个元素时,它都会出现此错误 #2025。当我单击该对象时,该对象在舞台上不再可见,但它总是给出此错误。
//remove items inventory
public function RemoveObject(mc:MovieClip)
{
var checkRemove:Number = curSlot - 1;
trace("current slot " + (curSlot-1));
trace("current pos array" + myIndex);
for(var i:int = 0; i < itemS.length;i++) {
this.removeChild(itemS[checkRemove]);
}
}