문제

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!!!

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top