Skip to main content
Inspiring
August 23, 2020
Question

Mask problem

  • August 23, 2020
  • 1 reply
  • 210 views

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.

    This topic has been closed for replies.

    1 reply

    Legend
    August 23, 2020
    Inspiring
    August 23, 2020

    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?