3 Replies Latest reply on Jan 5, 2018 5:35 PM by kglad

    How to reach a button into another button

    gillesd83777795 Level 1

      Hey guys,

       

      Can't figure out something about my project. I would be glad if you could help me.

       

       

      It seems to be a pretty simple question that I can't solve it myself as a beginner in js and Animate.

       

      So I got a symbole button :

       

      bim.JPG

       

      In this symbole button, I got 3 layers : "wood", "wood_aura" and "txt" which appear with a mouseover :

       

      babim.png

      The thing is : the wood_aura and txt are covering the symbole button on my main stage... and I don't know how to reach the new button made of wood_aura and txt...

       

      Trying to reach the new button into this simple function :

       

       

      this.btn1.addEventListener("click", fl_ClickToGoToAndStopAtFrame.bind(this));

       

      function fl_ClickToGoToAndStopAtFrame()

      {

      this.gotoAndStop(10);

      }

       

      Can you enlighten me on that ? Thanks A LOT !