Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to reach a button into another button

Community Beginner ,
Jan 05, 2018 Jan 05, 2018

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 !

309
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Jan 05, 2018 Jan 05, 2018

the parent should be a movieclip.

Translate
Community Expert ,
Jan 05, 2018 Jan 05, 2018

use a movieclip button, not a simple button.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 05, 2018 Jan 05, 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 ?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 05, 2018 Jan 05, 2018
LATEST

the parent should be a movieclip.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines