Forum Discussion
marcelo_cabral
9 years agoRoku Guru
I had a similar issue with MarkupGrid that only returns the index on itemFocused property, even when you have multiple sections.
My solution was to create an index array to easily access later the [section, index].
Then on the event to get the focus you just use this way:
My solution was to create an index array to easily access later the [section, index].
contentIndex = []
for s = 0 to m.top.content.getChildCount() - 1
for i = 0 to m.top.content.getChild(t).getChildCount() - 1
contentIndex.Push([s,i])
next
next
m.top.contentIndex = contentIndex
Then on the event to get the focus you just use this way:
index = m.top.contentIndex[itemFocused]
focusedContent = m.top.content.getChild(index[0]).getChild(index[1])