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
Is there an echo in here?
Copy link to clipboard
Copied
Is there an echo in here?
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.
Copy link to clipboard
Copied
Echo echo echo .... I'm sorry and thanks, problem solved