I'm trying to implement a "go back" button on the detail screen using SceneGraph to go back to the Grid Screen. My code is based off the Simple Grid with Details and Video example.
I have 2 buttons: "Play" and "Go Back." Play works just fine, but when I try to go back, nothing happens - I just get a blank gray screen with no error.
m.gridScreen = m.top.findNode( "GridScreen" )
' first button is Play
' second button is to Go Back
if m.top.itemSelected = 0
m.videoPlayer.visible = true
m.videoPlayer.setFocus( true )
m.videoPlayer.control = "play"
m.videoPlayer.observeField( "state", "OnVideoPlayerStateChange" )
if m.top.itemSelected = 1
print "I have selected the GO BACK button"
m.gridScreen.visible = "true"
m.gridScreen.setFocus( true )
m.top.visible = "false"
What am I missing here? Any help would be appreciated.