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: 
Highlighted
lumpenprole
Level 7

7.1 and custom inheritance

In the 'Creating Custom Components' section of the updated documentation it says:

Calling a function in an extended component with the same name as in the custom component from which it is extended will call the function in the extended component. This allows you to override (or overload) a function name to perform differently depending on the component from which it is called.


However, when I try it, I get:

--- SUB or FUNCTION defined twice. (compile error &had)

The error points to the child component. Is there something special that needs to be done?
0 Kudos
1 Reply
Highlighted
EnTerr
Level 9

Re: 7.1 and custom inheritance

can you whip and [ code] [ /code] post a short example?
0 Kudos