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

65

Likes

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
Adobe Community Professional ,
Aug 23, 2020 Aug 23, 2020

Copy link to clipboard

Copied

Likes

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?

Likes

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