Skip/Delete Scenes using Javascript

I see a lot off unneeded complexity at first glance and also you have to learn about scope. The hypeDocument object (API) isn't available "outside" of particular Hype document without some tweaking.

Read about that here

Also I am not sure why your wrapping a return in a function. That doesn't call it. It's just a reference to a function that probably ends up in nirvana.

I would suggest you share your file or at least (if that is not possible) try to consilidate you functionality to within Hype. Using external function calls can also be done with a construct like in the link above but in that case I would try to keep all code in the global head scope. Mix and match makes it hard to debug and anticipate interactions if your not a experienced developer.

My suggestion put your data outside in the window context and the use it in Hype only or create that global approach and put all your code in Head-HTML.

1 Like