Easel.js stage.clear () does not work

Pretty simple concept, but it doesn't seem to work. Here is my code:

stage.clear(); stage.update(); 

Simple things - nothing happens. Documents do not help.

+6
source share
2 answers

It ended for me:

 stage.removeAllChildren(); stage.update(); 
+15
source

if at this stage you have only one child of the form and do not want to use removeallchildren, you can do this:

 myshape.graphics.clear(); stage.update(); 

if more than one, then loop its children.

+1
source

All Articles