Although I’ve looked at this topic: How to call hype js function from external HTML, it hasn’t helped in this specific instance.
What I’m trying to do:
I have many functions within my Hype document.
I copied them into its own .js file.
I have added that .js file to the resource folder.
The .js file loads; however, the following error results:
Uncaught ReferenceError: hypeDocument is not defined
This invariably happens because within the code, I have used Hype’s api functions; such as, hypeDocument.goToTimeInTimelineNamed(9, priorTimeLine);
What I did:
Per the earlier post mentioned above, I replaced hypeDocument with
HYPE.documents['See']. See is the name of my document.
What happened next:
Uncaught ReferenceError: HYPE is not defined
I don’t know what to try next. Could someone point me in a fruitful direction?