Array won't refresh itself after removeChild
There is an array of objects. I'm trying to removeChild an object from
that array like below. removeChild works fine but the array won't refresh
itself after removing uppest object. As you can see in below, i tried to
trace array items out.
Firstly, array has three items, obviously the myArray.length must be 3.
After removing a child, myArray.length must be 2, but it get 3 (Wrong).
removeChild(myArray[currShape]);
trace(myArray);
Please tell me what am i missing here.
No comments:
Post a Comment