actionscript 3 - Array won't refresh itself after removeChild -
there array of objects. i'm trying removechild
object array below. removechild
works fine array won't refresh after removing uppest object. can see in below, tried trace
array items out.
firstly, array has 3 items, myarray.length
must 3. after removing child, myarray.length
must 2, 3 (wrong).
removechild(myarray[currshape]); trace(myarray);
please tell me missing here.
assuming you're using actionscript, removechild() serves take objects off stage. doesn't take things out of array. have take object out of array manually in statement.
Comments
Post a Comment