Kallen
05-06-2007, 12:26 AM
How can I create a series of views that slide to the left or right, similarly to Pandora's song views?
I can envision something like this:
I juggle 3 views at a time -- one is on stage, one is off stage-left (having recently left the stage) and the third is off stage-right (ready to slide onto stage). Only the middle view is visible at any time.
But, I've actually got around 10 views to work with. So, I start with View1. View 2 is off stage, waiting to come in. I click the Next button. View 1 slides off stage at the same time View 2 slides on to take its place. Then, View 3 cues up off stage, ready to come on.
Each time Next is pressed, the off-stage view slides on while the stage view slides off. And, another view cues up.
The reverse would happen when clicking the Previous button.
I've figured out how to slide the stage view off and the cued view on. But, I can't figure out how to cue the next view, nor how to code the Next and Previous buttons so they work with the appropriate views.
I can envision something like this:
I juggle 3 views at a time -- one is on stage, one is off stage-left (having recently left the stage) and the third is off stage-right (ready to slide onto stage). Only the middle view is visible at any time.
But, I've actually got around 10 views to work with. So, I start with View1. View 2 is off stage, waiting to come in. I click the Next button. View 1 slides off stage at the same time View 2 slides on to take its place. Then, View 3 cues up off stage, ready to come on.
Each time Next is pressed, the off-stage view slides on while the stage view slides off. And, another view cues up.
The reverse would happen when clicking the Previous button.
I've figured out how to slide the stage view off and the cued view on. But, I can't figure out how to cue the next view, nor how to code the Next and Previous buttons so they work with the appropriate views.