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
	alert(event);

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

Thanks

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

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

Please test.zip (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.

testPHP.zip (26.7 KB)

thanks