1 Reply Latest reply on Feb 5, 2008 11:36 PM by Ratsnackbar

    Remembering from whence you came

    Handycam Level 1
      In my app, I have a ViewStack with a linkBar.

      When the user goes to step 2 (third child of viewstack) I have an alert dialog which, if cancelled, should return the user to whichever screen they were on before they clicked on step 2.

      What's the best way to do this?
        • 1. Re: Remembering from whence you came
          Ratsnackbar Level 2
          You could listen for Mouse Over events on the linkbar and trap the current viewstack index in a variable when it hears it. Or when you enter into a new canvas on the viewstack set the index in a variable at that time. Then use it later to navigate to that screen. When you would set the variable depends on if you alert is showing up before or after you transition to the new canvas on the viewstack.