"jedashford" wrote:
Thanks @TheEndless, this is what I was looking for. I have everything now in place, but theres one small problem. How do I get the port from within scene graph? Specifically :
m.top.ObserveField("buttonChoice", m.top.getMessagePort())
This doesn't work, but I can't find any documentation on any interface to grab the message port. Any ideas?
The message port is the same one you create and assign to roSGScreen on channel launch.
You wouldn't call observeField from within your scene/component. You'd call it from the main BrightScript code where you want to receive the data.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)