To watch for this event, a message port needs to be opened. How would I you do this?
Here's my main.brs: Would I put it in here?
Code: Select all
screen = CreateObject("roSGScreen")
port = CreateObject("roMessagePort")
scene = screen.CreateScene("MainScene")
msg = wait(0, port)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then return