I fiddled around and managed to make some progress. By deleting the content and running window.loginDoc = hypeDocument; on a sceneload, I managed to get it to work with other documents. This has solved my original problem, so thank you very much. I also learnt a lot about the API just by playing around like this.
I have found however run into something strange, which I am sure will cause me problems soon.
Using this method, I cannot use buttons to call the scenes, but I can call them in the console perfectly?
Try this page: LINK
Enter email in first form and click send: second form scene change.
Refresh page, console:
window.loginDoc.showSceneNamed(‘Login’); = First form scene change
window.loginDoc2.showSceneNamed(‘Loginn’); = Second form scene change.
The buttons on each form have the correct JS, just as the lines above.
The second form is loginDoc2 and I even changed the new scene to Loginn.
Where am I being stupid?
Not deleting above incase it helps anyone else.
The JS Function ID’s the forms where calling were the same, so the first form would end up calling the second one’s which would launch it’s next scene.
Thanks for the help!