Can somebody point out the obvious mistake that keeps the task from running. Trying to work into scene graph by following
examples and post from other users. Starting to follow the procedure somewhat but having a problem with getting a simple
task to run. I know I will need to create an observe but just trying to get into the brs code for now.
HomeScene.xml
<?xml version="1.0" encoding="utf-8" ?>
<component name = "HomeScene" extends = "Scene" >
<script type="text/brightscript" >
<![CDATA[
sub init()
print "inside homescene"
m.readChannelListContentTask = createObject("roSGNode", "ChannelContentReader")
m.readChannelListContentTask.control = "RUN"
end sub
]]>
</script>
</component>
ChannelContentreader.xml
<?xml version="1.0" encoding="utf-8" ?>
<component name="ChannelContentReader" extends="Task" >
<interface>
<field id="channelcontent" type="node" />
</interface>
<script type="text/brightscript" uri="pkg:/components/channelcontentreader.brs"/>
<script type="text/brightscript">
<![CDATA[
function init()
m.top.functionName = "readcontent"
end function
]]>
</script>
</component>
ChannelContentReader.brs
ChannelContentReader.brs
Sub readcontent()
Print "INDSIDE readcontent"
end sub