slingxshot
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2017
02:08 PM
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!
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!
1 REPLY 1
joetesta
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2017
06:44 PM
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
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