Menu Breaks With Different Layout

Im working on a navigation for an animation project. I have 5 dots that use a javascript call to activate a timeline in a symbol.

When you preview the document as is the buttons do not work. However, delete the mobile layout and preview the document the buttons work just fine.

Any thoughts on what could be causing this?

jsMenuTest.hype.zip (42.8 KB)

probably an ID problem. I’ll just check your document.

*yep. As suspected you have given your elements the same ID. You must have unique ID’s for each element in the corresponding layout. Maybe a prefix for the elements m_ for mobile and d_ for desktop. You will have to adjust your script to accommodate this or re-think your goals and if there is another way you can achieve what it is you want.

Wow thanks DBear, for the fast response. I will make corrections and see if that does the trick.