Forum Discussion
joetesta
8 years agoRoku Guru
in BaseClass.xml
in BaseClass.brs
in ExtendedClass.brs
<field id="runSayHello" type="boolean" alwaysNotify="true" onChange="onRunSayHello" />
<field id="sayHelloResponse" type="string" />
in BaseClass.brs
sub onRunSayHello()
m.top.sayHelloResponse = SayHello()
end sub
in ExtendedClass.brs
sub getBaseSayHello()
m.top.observeField("sayHelloResponse","gotResponse")
m.top.runSayHello = true
end sub
sub gotResponse()
print "Response: "; m.top.sayHelloResponse
end sub