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: 
slingxshot
Streaming Star

Change Scenes

Hello,

I would like to do some logic in main.brs and load different scenes based on the situation. However, I would like to exit out of the scene also and change to another one.

Is this possible?

If not, how would I put an authentication screen before everyything. I have all my code in the main screen, but once I am in it, I have lots of other children components there.

Thanks!
0 Kudos
1 REPLY 1
joetesta
Roku Guru

Re: Change Scenes

I believe it's best to have only one scene and create your screens from different components, attach and remove them from the main scene as your application flows.
So you may want to move the code from your main scene into a main component, or you can probably still keep it there and just present a separate auth component before allowing the main Scene's main contents to display.  for example set your main group / container to visible = false until after the auth process succeeds, hope this may be of help!
Joe
aspiring
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.