Highlighted

Mask problem

Explorer ,
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

43

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

Mask problem

Explorer ,
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

44

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
Aug 23, 2020 0
Adobe Community Professional ,
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
Reply
Loading...
Aug 23, 2020 0
Explorer ,
Aug 23, 2020

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?

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
Reply
Loading...
Aug 23, 2020 0