Linking to a hype scene from another hype document

Hi Craig (@craigah13)

All you need is to use this line as your link.

HYPE.documents['**Document Name**'].showSceneNamed('**Scene Name**'); 

You can place this in a “On Mouse Click” --> “Run Javascript…” function on any element.

Or you can create your own HTML link and place it there as:

<a href="#" onclick="HYPE.documents['Document2'].showSceneNamed('Scene 2');">Link</a>

This assumes you have named your document “Document2” and the scene within it is named “Scene 2”

Live Example

Document1.hype.zip (32.3 KB)
Document2.hype.zip (35.4 KB)