Skip to main content
gillesd83777795
Participant
January 5, 2018
Answered

How to reach a button into another button

  • January 5, 2018
  • 1 reply
  • 339 views

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 :

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

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 !

    This topic has been closed for replies.
    Correct answer kglad

    the parent should be a movieclip.

    1 reply

    kglad
    Community Expert
    Community Expert
    January 5, 2018

    use a movieclip button, not a simple button.

    gillesd83777795
    Participant
    January 5, 2018

    Hey, thanks for the reply.

    Use a movieclip button as main button or when I'm already in ?

    Can you please give me more details ?

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    January 6, 2018

    the parent should be a movieclip.