on (release) {
if (_root.layerzero==true){
_root.drawing.clear();
_root.isactive=null;
}
if (_root.layerone==true){
_root.layer.clear();
_root.isactive=null;
}
You’ll notice that I also set the active tool to “null”, so that after a layer is cleared there is no painting/drawing tool selected.

