to all of you ultra talented developers!
i am in great need of a proper removechildren function, thought to write one myself, at some point reached the end of my capabilities, please please help!
i need a function that would remove all children of a specified container, except specified exceptions, something like
removeall(cont, {cont.mc1, cont.mc2});
that removes all children of cont, except the two mcs. if possible i need the number of exceptions to be not too limited.
i almost made it, but then, when i needed to add the children back, i got stuck.
the function needs to remember (array?) everything it has removed, including the state in which all of it was (alpha, scale, childinxed, etc);
even that almost succeeded, but when i used one specific array that i declared outside of the function, if i used it to remove children of somebody else, i couldnt make the array remember both cases to add them later. make an array of arrays?
anyway, i am very very much stuck, and would would be very happy to get out.
if something like this exists on the web, would love a link. if not, i think such a function (especially integrated with an eventmanager class to make a super as3 nanny) would be a great gift to the as3 people.
thanks,
michael