ShowSceneNamed for generated button

Please help me.

This button was created by php script: <input type="button" onload="HYPE.documents[\'test\'].showSceneNamed(\'ChooseTable\')" onclick="HYPE.documents[\'test\'].functions().ChooseTable(0,0,'.$tid.')" value="Go">
This work.

function ChooseTable(hypeDocument, element, event) {			
	/// this work

	/// this not work
	hypeDocument.showSceneNamed('myscene', kSceneTransitionInstant, 1.1);
	/// how to go "myscene" and save var event?	


You need to include your document ID if you are running this outside of a Hype document. Please see:

If you’re running this in Hype and it is not working, can you share a document?

Please (27.0 KB)

Not work

hypeDocument.showSceneNamed('ChooseTable', hypeDocument.kSceneTransitionCrossfade, 1.1);

This work

HYPE.documents['name'].showSceneNamed('nameS', HYPE.documents['name'].kSceneTransitionCrossfade, 1.1);

This may also help. (26.7 KB)