Skip to main content
Participant
November 19, 2022
Answered

Animating simbol on mask layer

  • November 19, 2022
  • 3 replies
  • 1377 views

Why isn't the symbol animated if I mask the layer on which the symbol is located?

    This topic has been closed for replies.
    Correct answer kglad

    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.


    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

    3 replies

    Community Expert
    November 22, 2022

    Show us a screenshot so we can better understand what you're doing. 

    sergiopop75
    Inspiring
    November 19, 2022

    In this video I explain how to use a graphic symbol as a mask.

    https://youtu.be/V_svCnCa9v4

    ____2D vector animator since 2000 & PhD
    kglad
    Community Expert
    Community Expert
    November 19, 2022

    masking won't change the animation in other layers, masked or not.

    Participant
    November 19, 2022

    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?

    kglad
    Community Expert
    Community Expert
    November 19, 2022

    your mask is interfering with the mouse interaction, not the animation