Type Your Name
Now Click the Scene Button in the Apps Navigation Bar
This function posts the name Value to the App. The App then speaks the Name
The Say Hello Button runs a Hype Function
function say(hypeDocument, element, event) { var name = hypeDocument.getElementById(' name ').value; window.webkit.messageHandlers.helloWorld.postMessage(name); }
Say Hello
Hype -> Xcode App messaging
webView!.evaluateJavaScript("HYPE.documents['Hype_world'].showSceneNamed('scene2', HYPE.documents['Hype_world'].kSceneTransitionCrossfade, 0.2);", completionHandler:nil )
Xcode App -> Hype messaging
We reached this scene via a message being posted to Hype from the App
Example code in an IBAction or #Selector Action