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: 
squirreltown
Roku Guru

8.1/8.0 fields

What has changed in 8.1 regarding observe field firing functions?
This is a screensaver clock that works in 8.0.x but fails to fire the "OnTimeChanged" function in 8.1 ( Roku 4640X)

Sub Runscreensaver()
m.global = screen.getGlobalNode()
  m.global.AddField("timex", "string", false)
    m.global.timex= ""
while true
   m.global.timex=gettime()
end while
end sub

'screensaver'
Function init() 
    m.global.observeField("timex", "onTimeChanged")
 end Function
 
 'XML'

<interface>
    <field id="timex" type="string" alwaysNotify="true" onChange="OnTimeChanged" />
</interface>
Kinetics Screensavers
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.