"drew-man" wrote:
Did you ever figure this out? I'm new to Roku and trying to do the same thing!
<?xml version="1.0" encoding="utf-8" ?>
<component name="Slideshow" extends="Scene">
<children>
<Postergrid
id = "postergrid"
translation = "[ 0, 0 ]"
basePosterSize="[1280,720]"
useAtlas="false"
posterDisplayMode="scaleToFit"
itemSpacing="[0,0]"
numColumns="2"
numRows="1"
drawFocusFeedback = "false" />
<Timer
id="testTimer"
repeat="true"
duration="6" />
</children>
<!-- BrightScript Portion -->
<script type="text/brightscript" >
<![CDATA[
function init()
m.top.setFocus(true)
m.testtimer = m.top.findNode("testTimer")
m.testtimer.ObserveField("fire","reanimateit")
m.postergrid = m.top.findNode("postergrid")
m.postergrid.observeField("itemFocused", "setposter")
m.postergridTask = createObject("roSGNode", "ContentReader")
m.postergridTask.contenturi = "http://yourXMLfileHere"
m.postergridTask.observeField("content", "showpostergrid")
m.postergridTask.control = "RUN"
end function
sub showpostergrid()
m.postergrid.content = m.postergridTask.content
m.postergrid.setFocus(true)
animateit()
end sub
sub animateit()
m.item = m.postergrid.itemFocused
m.testtimer.control = "start"
end sub
sub reanimateit()
m.item++
m.postergrid.animateToItem=m.item
end sub
]]>
</script>
<!-- End of BrightScript Portion -->
</component>
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!