Actionscript 3 在flex中从阵列中删除点

Actionscript 3 在flex中从阵列中删除点,actionscript-3,apache-flex,flex3,Actionscript 3,Apache Flex,Flex3,我只需要删除位置I处的一个元素。如何直接删除该元素。是否有任何直接功能。我只想从数组中删除arr[I]。我如何才能做到这一点我flex 3.0 indexpoly = 3; for(indexpoint = 0; indexpoint < indexpoly; indexpoint++) { temp.points[indexpoint].x = intpoints[indexpoint].x+this.x; temp.points[indexpoint].y = in

我只需要删除位置I处的一个元素。如何直接删除该元素。是否有任何直接功能。我只想从数组中删除arr[I]。我如何才能做到这一点我flex 3.0

indexpoly = 3;

for(indexpoint = 0; indexpoint < indexpoly; indexpoint++)
{ 
    temp.points[indexpoint].x = intpoints[indexpoint].x+this.x;
    temp.points[indexpoint].y = intpoints[indexpoint].y+this.y;
}

for(indexpoint = indexpoint + 1; indexpoint <= intpoints.length; indexpoint++)
{
    temp.points[indexpoint-1].x = intpoints[indexpoint].x + this.x;
    temp.points[indexpoint-1].y = intpoints[indexpoint].y + this.y;
}
indexpoly=3;
对于(indexpoint=0;indexpoint

您在SO上的最后三个问题几乎相同……您确定您的
临时点
数组不是问题所在吗?
var index:int = 3;
temp.points.splice(index, 1);