Skip to main content
May 22, 2017
Answered

Why is my mask undefined?

  • May 22, 2017
  • 3 replies
  • 437 views

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

This topic has been closed for replies.
Correct answer ClayUUID

Is there an echo in here?

Animate CC Masking in the Actions Panel?

3 replies

May 23, 2017

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

kglad
Community Expert
Community Expert
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.

ClayUUIDCorrect answer
Legend
May 22, 2017