Pergunta

I was wondering if you are able to remove an specific child from the stage. I know that you can do this:

stage.removeAllChildren();
stage.update();

But with this you will clear all the canvas... is there a way to do something like this

stage.removeAllChildren(name_of_the_child);
stage.update();

Thanks!!!

Foi útil?

Solução

There is this removeChild(child) method , take a look at the documentation http://www.createjs.com/Docs/EaselJS/classes/Stage.html#method_removeChild

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top