• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Mask problem

Explorer ,
Aug 23, 2020 Aug 23, 2020

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.

Views

120

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 23, 2020 Aug 23, 2020

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Aug 23, 2020 Aug 23, 2020

Copy link to clipboard

Copied

LATEST

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines