Calling a function from main.brs

Hi, I have a dumb question. I’m trying to call a function from main.brs, getting the usual error about it unable to see it.

//main.brs
scene = screen.CreateScene("HomeScene") //Function is located in the "HomeScene.brs, not the .xml"
scene.myfunction() <-- Error

Thanks,

-T

did you try this?
https://sdkdocs.roku.com/display/sdkdoc/interface

Add to your HomeScene xml:

<interface>
   <function name="myfunction" />
</interface>

Does it work from scene?

No, but that did lead me to this:
https://sdkdocs.roku.com/display/sdkdoc … onalFields

and this:
scene.callFunc(“myfunction”)

Thanks.