Copy link to clipboard
Copied
Hello,
As a beginner on HTML5 animate, I want to know how I can translate the following ActionScript 2 code:
myClip1.setMask (myClip2);
I can't find a simple answer that I can use.
A big thank you to all those who will answer me.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I've tried this code:
this.maskmc.visible = false;
this.maskmc.shape.x = this.bgmc.x;
this.maskmc.shape.y = this.bgmc.y;
this.bgmc.mask = this.maskmc.shape;
But I can't get it to work. "maskmc" and "bgmc" are clips?
What's the solution, please?