Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
destruk
Level 10

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