screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
scene = screen.CreateScene("onboarding_a")
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
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 :
This doesn't work, but I can't find any documentation on any interface to grab the message port. Any ideas?