Forum Discussion
jaxim
9 years agoVisitor
I can include a common brs file, but that doesn't seem to save the values of variables across multiple scenes /scripts.
The following is what I tried to do but the methods referenced in the associative array return as invalid:
So the following returns as invalid
However, the following does NOT return as invalid
What am I doing wrong?
The following is what I tried to do but the methods referenced in the associative array return as invalid:
Function Utils() as Object
m.obj = createobject("roAssociativeArray")
m.obj.testing = Function()
end Function
Function reset()
end Function
this = {
obj: m.obj,
testMethod: m.obj.testing,
reset: resetCode
}
return this
end Function
So the following returns as invalid
Reporting().testMethod
Reporting().reset
However, the following does NOT return as invalid
Reporting().obj
What am I doing wrong?