4 Replies Latest reply on Sep 15, 2011 5:43 PM by Francisc

    Best Practice in regards to adding showing SkinnablePopUp from the Main application file of Mobile A

    Francisc Level 3

      Hello,

       

      I want to display a SkinnablePopUp when the user presses the back key when the current view is the first view to ask if he wants to quit.

      The logic (checking if the key pressed was the back key && the current view is the first view) is in the main application file and if those two conditions are true then the exit() method is called.

       

      I want to show the confirmation popup. Should I move all that in the first view mxml component or is it OK to instantiate the SkinnablePopUp in the main app file?

       

      Thank you.