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: 
hugetv
Visitor

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
Visitor

Re: Help to select menu poster

Any help please
Our system http://www.rokumanager.com
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.