Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
hugetv
Level 7

Help to select menu poster

Help to select menu in poster I have this code

menu.xml
<?xml version = "1.0" encoding = "utf-8" ?>

<!--********** Copyright 2016 Roku Corp.  All Rights Reserved. **********-->
 
<component name = "Menus" extends = "ContentNode" >

  <children >

    <ContentNode title="MenuHome" >
<ContentNode title="menu 1" HDPOSTERURL="pkg:/images/menu/1.png" />
   <ContentNode title="menu 2" HDPOSTERURL="pkg:/images/menu/2.png" />
<ContentNode title="menu 3" HDPOSTERURL="pkg:/images/menu/3.png" />
    </ContentNode>

  </children>

</component>



'Create main labellist menu
m.MainMenu=m.top.findNode("MainMenu")
m.MainMenu.content = CreateObject("roSGNode", "Menus")
<field id="itemSelected" type="intarray" alias="MainMenu.itemSelected" onChange="MainMenuSelectionMade"/>
<!--Menu grid -->
<RowList
id="MainMenu"
            itemComponentName="Item"
            itemSize="[1327,300]"
            rowHeights="[500]"
            rowItemSize="[[300,300]]"
            rowItemSpacing="[[100,0]]"
            rowLabelColor="0x333333"
            numRows="1"
            showRowCounter="[false]"
            translation="[125,250]"/>

this m.MainMenu.getChild(0).getChild(m.MainMenu.itemSelected) error

Function MainMenuSelectionMade() 'interface for the main menu screen
   Print m.MainMenu.getChild(0).getChild(m.MainMenu.itemSelected)
End Function
Our system http://www.rokumanager.com
0 Kudos
1 REPLY 1
hugetv
Level 7

Re: Help to select menu poster

Any help please
Our system http://www.rokumanager.com
0 Kudos