I am trying to call a function within a component that extends Group. I placed the function within the component's XML interface:
<function name="highlightItem" />
Within the function that is defined in the component's brs file, I place a line that should output to my debugging window; however, that line never gets outputted to the debug window.
sub highlightItem(index)
?"highlightItem() has been called"
end sub
This is how I am trying to call the function:
m.menuGroup.callFunc("highlightItem", 1)
So it appears that the function is never called. However, I do the same thing with a few screens which are also components that extend group and and the function in those cases is called properly. The one difference is that the screens are dynamically added to the scene by calling the following code:
screen = createObject("roSGNode","Screen1")
m.screensGroup.appendChild(screen)
What could be the issue here? Why can't I successfully call callFunc() with the group component?