jedashford
10 years agoChannel Surfer
Can I return a Message from roSGScreen?
How would I send data back from my roSGScreen to my standard brightscript code? Specifically to fire the port listener in the while loop.
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
scene = screen.CreateScene("onboarding_a")
screen.show()
while(true)
msg = wait(0, m.port)
msgType = type(msg)
if msgType = "roSGScreenEvent" '<----- How can I return something specific back here?
if msg.isScreenClosed() then return 50
end if
end while