Skip to main content
Inspiring
March 18, 2024
Question

Remove mask

  • March 18, 2024
  • 1 reply
  • 184 views

In this code:

var content = this.snowman;
var mask_shape = new createjs.Shape();
mask_shape.graphics.beginFill("#ff0000").drawRect(175,665,190,201);
mask_shape.visible = false;
content.mask = mask_shape;

how do I remove mask in later on the frame.

 

 

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
March 18, 2024

try,

 

content.mask=null;

 

or

 

content.mask=content;

peorAuthor
Inspiring
March 18, 2024

I have tested and it works. Thanxs for the help.

kglad
Community Expert
Community Expert
March 19, 2024

you're welcome.