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

Using Advanced Layers way of accessing button but still not working

New Here ,
Apr 13, 2020 Apr 13, 2020

Copy link to clipboard

Copied

Even after using the correct way of accessing an object when Advanced Layers is ticked, I am not able to access the object. The comipler is not showing any errors but when testing, it won't even recognise the button as a button. It doesn't even change the cursor and when clicked, nothing happens.

 

stop();

 

GrowButton.home.addEventListener(MouseEvent.CLICK, start);

function start (event:Mouse event):void

{

      gotoAndPlay(105);

}

Views

230

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 ,
Apr 14, 2020 Apr 14, 2020

Copy link to clipboard

Copied

LATEST

Hi.

 

Which version of Adobe Animate are you using?

 

In the most recent versions, you should be able to reference timeline instances normally without passing the layer name first when using Advanced Layers.

 

So...

home.addEventListener(MouseEvent.CLICK, start);

 

... should work.

 

Please let us know.

 

 

Regards,

JC

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