So, I'm trying out the Row List component. Running this code doesn't throw any errors, but it immediately restarts the roku box.
Here's the xml:
<?xml version="1.0" encoding="utf-8" ?>
<component name="carouselScene" extends="Scene" >
<script type="text/brightscript" uri="pkg:/components/scripts/CarouselSceneScript.brs" />
<children>
<RowList
id="contentRow1"
itemComponentName="Poster"
translation="[0, 50]" />
</children>
</component>
And here's the script:
Sub init()
?"CarouselSceneScript:init()"
m.contentRow1 = m.top.findNode("contentRow1")
configureRowList()
m.top.setFocus(true)
end Sub
Sub configureRowList()
content = createObject("RoSGNode", "ContentNode")
content.TITLE = "Test Row"
for x = 1 to 21
thisCon = content.createChild("ContentNode")
thisCon.HDPOSTERURL = "pkg:/locale/default/images/book-covers-" + x.ToStr() + ".jpg"
end for
m.contentRow1.rowItemSize = [[335,463]]
m.contentRow1.content = content
end Sub
I've put stops in and stepped through it. It doesn't throw errors and crashes the box when it goes to draw.