jbrave
15 years agoChannel Surfer
calling screens and returning
I have a search screen function which returns the string searched for, and then I get the list of matching files from the server and load them into the audio player, launch a posterscreen displaying the files and associated graphics, from which one can play the audio files. However, I don't really understand the correct method for exiting this screen back to the search. Currently when I exit (using the up button on the remote), it goes back to the search screen, but although the search screen works, nothing happens when you hit search this time.
I think I don't really understand how to call screens and return - the calling part I understand, but I don't know how one goes from one function back to a previous function when executing in-line.
my app looks like this:
sub main()
DefineObjects()
AssignDefaults()
setlevel(m.default)
SetCat(m.level)
searchscreen("tracks")
getsearchtracks(0,20)
displayposter()
so how do I get from here:
messageloop()
back to the searchscreen() and getsearchtracks()
end sub
I think I don't really understand how to call screens and return - the calling part I understand, but I don't know how one goes from one function back to a previous function when executing in-line.
my app looks like this:
sub main()
DefineObjects()
AssignDefaults()
setlevel(m.default)
SetCat(m.level)
searchscreen("tracks")
getsearchtracks(0,20)
displayposter()
so how do I get from here:
messageloop()
back to the searchscreen() and getsearchtracks()
end sub