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

How to reach a button into another button

Community Beginner ,
Jan 05, 2018 Jan 05, 2018

Copy link to clipboard

Copied

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 !

Views

214

Translate

Translate

Report

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.

Votes

Translate

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

Copy link to clipboard

Copied

use a movieclip button, not a simple button.

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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 ?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

the parent should be a movieclip.

Votes

Translate

Translate

Report

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