Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
destruk
Streaming Star

SimpleAnimation sample zip error

The code is supposed to react to the UP and DOWN on the remote to show a popup display at the bottom of the screen, but that section doesn't have focus.
To fix - in the components/simpleanimation.brs after m.video.unobserveField("state"), add m.top.SetFocus(TRUE)

Function onPlaybackStateChanged() As Void
Print m.video.state
If m.video.state="playing"
m.splash.visible=FALSE
m.video.visible=TRUE
m.label.visible=TRUE
m.poster.visible=TRUE
startAnimations()
m.video.unobserveField("state")
m.top.SetFocus(TRUE)
End If
End Function
0 Kudos