
squirreltown
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2018
08:40 AM
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)
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