PDA

View Full Version : Remove Specific Child


Squishinator
10-14-2009, 01:34 AM
I have constant series of movieclips moving across the stage, and i want the specific one to be removed when it is hit by something. (hitTestObject, i know). I have tried a lot of things but i keep getting errors. Please be specific.

techfreak11
10-14-2009, 02:35 AM
You could add the movieclips being added to the stage added to an array. You could also have all the objects that they could run in to in another array. just run a nested for loop from there.

Squishinator
10-14-2009, 03:39 AM
could you please give an example in code?