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: 
jbrave
Channel Surfer

Re: calling screens and returning

Well, I think I get the stack of cards thing now, correct me if I'm wrong, but it works sort of like this:

card1
sub main()
put up poster screen
message loop listening for isitemselected
if is true and item is search, call search screen
otherwise (check for other types or exit app)
end sub

card2
sub search screen()
listen for keypresses, collect messages into a string until search button is pressed
if search is full then call displayresults() otherwise exit sub back to main
end sub

Card3
sub displayresults()
create a poster screen containng all the results from the search.
listen for messages
if listitemisselected
play that item
otherwise exit back to sub search screen
end sub

I think that is pretty simple, assuming I understood what TheEndless was saying.

- Joel
Screenshades: The first Screensaver for Roku2!
Musiclouds: The best free internet music, on your Roku!
Ouroborialis: Psychedelic Screensaver for Roku!
0 Kudos
RokuKevin
Visitor

Re: calling screens and returning

I think you've got it Joel.

--Kevin
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.