0
Using Advanced Layers way of accessing button but still not working
New Here
,
/t5/animate-discussions/using-advanced-layers-way-of-accessing-button-but-still-not-working/td-p/11046293
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);
}
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/animate-discussions/using-advanced-layers-way-of-accessing-button-but-still-not-working/m-p/11048124#M203105
Apr 14, 2020
Apr 14, 2020
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

