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

Why is my mask undefined?

Guest
May 22, 2017 May 22, 2017

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

390
Translate
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?

Translate
LEGEND ,
May 22, 2017 May 22, 2017

Is there an echo in here?

Animate CC Masking in the Actions Panel?

Translate
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

use the variable mask to reference your mask. eg,

mask.rotation+=3;

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

Translate
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
LATEST

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

Translate
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