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:
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:
Thanks for posting this! I always thought callFunc() required an associate array as the second parameter. In the docs it says,"Any context from the caller can be passed to the function via an associative array, which is fully converted/cloned on call." See here: https://sdkdocs.roku.com/display/sdkdoc/Handling+Application+Events#HandlingApplicationEvents-FunctionalFields