Hello, I am a newbie and have aquestion about BScript, If I have a function in play.brs as: function play () print "this is just to see if the function call works" end function and I am calling it from appMain.brs as follows: play()
I get the following error in console debug: Function Call Operator ( ) attempted on non-function. (runtime error &he0) in ...QpQxj/pkg:/source/appMain.brs(9)
If that is the exact script then my guess your error is on the function line as it looks like you have a space between play and (). Calling functions across files does work fine and does not need anything extra, if you equate it to other languages everything compiles into one class (just a very rough analogy).
FYI, all your brightscript files need to end with .brs and they should all be within the source folder in your package. If the files do not have a .brs extension then the contents will not be interpreted as brightscript, perhaps something like that is why it isn't finding the play function. A space between play and () doesn't matter