Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rokimile
Newbie

Unknown roSGNode 'GridScreen' error HOW TO FIX?

Hello everyone, I made an application according to the guide of the official channel and started giving the following error Failed to create roSGNode with type GridScreen: pkg:/components/UILogic/GridScreenLogic.brs(2) I can't figure out why the code is

 

sub ShowGridScreen()
m.GridScreen=CreateObject("roSGNode","GridScreen")
ShowScreen(m.GridScreen)
end sub

main.brs
sub Main()
ShowChannelRSGScreen()
end sub

sub ShowChannelRSGScreen()
screen=CreateObject("roSGScreen")
m.port=CreateObject("roMessagePort")
screen.SetMessagePort(m.port)
scene=screen.CreateScene("MainScene")
screen.Show()

while(true)
msg=wait(0,m.port)
msgType=type(msg)
if msgType="roSGScreenEvent"
if msg.IsScreenClosed() then return
end if
end while
end sub

 

0 Kudos