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

Why is my mask undefined?

Guest
May 22, 2017 May 22, 2017

Copy link to clipboard

Copied

Hello Folks,

i have a short question for which i didn't found an answer in the web.

I have a mask on my stage and i want to animate it with JS.

To get my mask in a object i wrote the following line of code: var mask = this.graphic_mc.mask_mc.

When i now try to manipulate my mask i get the error TypeError: mask is undefined.

Why is my var mask = this.graphic_mc.mask_mc undefined?

Greetings

Hagen

Views

318

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

correct answers 1 Correct answer

LEGEND , May 22, 2017 May 22, 2017

Is there an echo in here?

Animate CC Masking in the Actions Panel?

Votes

Translate

Translate
LEGEND ,
May 22, 2017 May 22, 2017

Copy link to clipboard

Copied

Is there an echo in here?

Animate CC Masking in the Actions Panel?

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
Community Expert ,
May 22, 2017 May 22, 2017

Copy link to clipboard

Copied

use the variable mask to reference your mask. eg,

mask.rotation+=3;

read the linked discussion in message 1 to see why that works.

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
Guest
May 22, 2017 May 22, 2017

Copy link to clipboard

Copied

LATEST

Echo echo echo .... I'm sorry and thanks, problem solved

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