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);
}
Copy link to clipboard
Copied
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