Copy link to clipboard
Copied
Why isn't the symbol animated if I mask the layer on which the symbol is located?
clear your cache. here's that example: https://www.kglad.com/Files/forums/test.html
using this code:
this.stop();
this.c.addEventListener("click",f.bind(this));
function f(e){
this.s.play();
}
if you still have trouble, upload your fla to a file server and post a link
Copy link to clipboard
Copied
masking won't change the animation in other layers, masked or not.
Copy link to clipboard
Copied
I turned the square into a symbol that changes shape when the button is clicked.
But after I put the "Mask" option on the layer where the square is, there is no animation after clicking on the button.
Why, who knows?
Copy link to clipboard
Copied
your mask is interfering with the mouse interaction, not the animation
Copy link to clipboard
Copied
Okay,
How do I make the symbol start playing an animation as a mask that changes size?
Copy link to clipboard
Copied
To clarify: to make the symbol start playing animation as a mask - after the mouse clicks on a separate button.
Copy link to clipboard
Copied
i don't know how you could be having a problem. here's a masked movieclip (s) that triggers the main timeline to play when it's clicked.
https://www.kglad.com/Files/forums/test.html
// this is the code
this.stop();
this.s.addEventListener("click",f.bind(this));
function f(e){
this.play();
}
Copy link to clipboard
Copied
Thanks for the example!
But I have a different problem:
Clicking on the button (separate from the symbol) should trigger a change in the symbol's shape. And this doesn't happen as soon as I mask the layer on which the symbol is located.
Copy link to clipboard
Copied
clear your cache. here's that example: https://www.kglad.com/Files/forums/test.html
using this code:
this.stop();
this.c.addEventListener("click",f.bind(this));
function f(e){
this.s.play();
}
if you still have trouble, upload your fla to a file server and post a link
Copy link to clipboard
Copied
In this video I explain how to use a graphic symbol as a mask.
Copy link to clipboard
Copied
Show us a screenshot so we can better understand what you're doing.