Skip to main content
Participant
April 13, 2020
Question

Using Advanced Layers way of accessing button but still not working

  • April 13, 2020
  • 1 reply
  • 316 views

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);

}

    This topic has been closed for replies.

    1 reply

    JoãoCésar17023019
    Community Expert
    Community Expert
    April 14, 2020

    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