Here is a button sample. You basically need to define an observer for the buttonSelected field:
SimpleButtonScene.xml
<?xml version="1.0" encoding="utf-8" ?>
<component name="SimpleButtonScene" extends="Scene" >
<script type="text/brightscript" uri="pkg:/components/SimpleButtonScene.brs" />
<children>
<Button id="button" text="Press Me!" />
</children>
</component>
SimpleButtonScene.brs
function init()
m.button = m.top.findNode("button")
m.button.ObserveField("buttonSelected", "onButtonSelected")
m.button.SetFocus(true)
end function
function onButtonSelected() as void
print "Button Pressed"
end function
A RowList sample is coming soon.