Skip to main content
Inspiring
Mar 18, 2024 6:06 PM UTC
Question

Remove mask

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 is closed to new replies. Start a new post to keep the conversation going.

3 replies

kglad
Community Expert
Community Expert
Mar 18, 2024 8:06 PM UTC

try,

 

content.mask=null;

 

or

 

content.mask=content;

Translate
peorAuthor
Inspiring
Mar 18, 2024 8:48 PM UTC

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

Translate
kglad
Community Expert
Community Expert
Mar 19, 2024 1:37 AM UTC

you're welcome.

Translate