function deleteArrayItem(ar:Array,n:int) { i=n+1 while(i<ar.length) { ar[i-1]=ar[i]; i++ } ar.length--; }