Skip to main content
Participant
Nov 19, 2022 5:34 PM UTC
Answered

Animating simbol on mask layer

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    kglad
    kgladCorrect answer
    Community Expert
    Nov 19, 2022 9:15 PM UTC

    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

    10 replies

    Community Expert
    Nov 22, 2022 12:34 AM UTC

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

    Translate
    sergiopop75
    Inspiring
    Nov 19, 2022 8:44 PM UTC

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

    https://youtu.be/V_svCnCa9v4

    Translate
    ____2D vector animator since 2000 & PhD
    kglad
    Community Expert
    Community Expert
    Nov 19, 2022 5:59 PM UTC

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

    Translate
    Participant
    Nov 19, 2022 6:06 PM UTC

    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?

    Translate
    kglad
    Community Expert
    Community Expert
    Nov 19, 2022 6:13 PM UTC

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

    Translate