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

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.

so do I, or did, well still do but less than before
it seems best practice is to seperate mxml and AS3
have a look at this
http://tv.adobe.com/watch/max-2010-develop/flexactionscript-30-architecture-and-dependency -injection-frameworks-overview/

Similar Messages

  • Adding/Removing items from the main menu

    I don't know why my iPod won't let me add or remove items from my main menu.
    I go
    Settings > Main Menu > (check what I want on the main menu) > Reset Main Menu > Reset
    When I go out to the main menu again, nothing has changed.
    Anyone else having this problem? Thank you for help!

    If you do a reset then you're resetting it to default. If you want to change anything ya just change it to on/and or off, then hit the menu button to go back. Don't go all the way to reset. Hope this helps.

  • Message application freezing when adding new contact from the messages application

    if someone is sending the message with the phone number included in the text, i touch the number and whait till options will pops up, choosing create new contact and ok. then the messages application freezes for a long time... few minutes. have to double press the home button and switch of the message app from the background. So have to start message app again to be able to use it. How to sort this? Its happening more than one year and have changed few phones already.

    Snow Leopard and iCloud compatibility is very limited, and it may be that the phone's OS requires iCloud for the syncing:
    https://discussions.apple.com/docs/DOC-2551
    I would enquire in the iOS forums to find out if there is a way without iCloud now to sync.

  • When I publish my site on one specific page where i've added {tag_pagecontent} I get the error:Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.

    When I publish my site on one specific page where I've added {tag_pagecontent} I get the error:
    'Some files on the server may be missing or incorrect. Clear browser cache and try again. If the problem persists please contact website author.'
    I'm trying to get a blog module going, I've even deleted the html insert bog with the tag in and re-published which then I don't get the error but as a result no blog either. But then I add the tag in again and publish the error comes back. I've used the dev console and it says that my musicians sample.css is out of date but why is it only out of date when I add in html to my muse site?
    HELP!!!! I've searched other threads and to no avail I'm publishing so no direct ftp going on. the only thing I changed in business catalyst was the module stylesheet in order to style the blog. I've tried uploading and replacing all files nothing seems to work. the site is here:
    http://www.musicstudentsforhire.co.uk/musicians-samples.html
    It's only this page as it has the blog on. Also I've noticed when I've re-published occasionally it will show the mobile version on my desktop and not the desktop version??? no idea why that's happening so I've had to turn that off. any explanation on why that is happening would also be much appreciated.

    I haven't received an answer as of yet, I'll post t on here when I do. I de-activated the mobile site because it's my clients site so he needs it to be operational during the day. I hope someone gives me an answer soon.

  • After updating my iphone 5 of ios 7, I delete or trash my emails rorm my inbox and they pop back up in my inbox.  How do I fix this?  They are deleted from the main server but show up in my email on my phone and will not stay deleted.

    I recently updated my iphone 5 to IOS 7 and since doing this, i cannot get my email messages to stay deleted when I trash them.  They have been deleted from the main mail server but show up on my phone.  When I trash them, they disappear for a few seconds and then re-appear in the inbox. I tried deleted my mail account from my phone and re-adding it, but this worked for about 12 hours and now its doing it again. I also have shut my phone off and rebooted it but this did not work.  How do I fix this?

    Have you tried restarting or resetting your iPhone?
    Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
    Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
    Also consider deleting and reinstalling the Mail Account in question.

  • I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. years each month.

    I am attempting to have cells use data from a selective month from the year before so that I can show actual from the prio. year each month. I need to create a spreedsheet using the the Acutlas from the year-to-date and from last year-to-date, but need to report each month.

    Hi Tony,
    Answering your question would be easier given a screen shot of the source table and one of what you want the summary table to look like.
    Is the data you want for each month in a single cell o the source table, or does the summary table need to collect February's data (for example) from several cells and do some math with those numbers before presenting them on the summary table?
    Regards,
    Barry

  • My new podcast episodes are not showing up on the main page

    my podcast page hasn't updated in 2 weeks even though i've been adding new episodes to my feed:
    http://www.cofc.edu/~hiottm/RSS.XML
    When i click SUBSCRIBE, i see the newest episodes there, so iTunes is reading my feed correctly, but why aren't they showing up on the main page?
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=200063590
    Does anyone know if there is a LIMIT to how many will show up on that main page? I have 45 being displayed, but my feed has 59 separate items. I've not read anything that indicates there is a limit.
    any help would be appreciated!!
      Windows XP  

    my podcast page hasn't updated in 2 weeks even though
    i've been adding new episodes to my feed:
    http://www.cofc.edu/~hiottm/RSS.XML
    When i click SUBSCRIBE, i see the newest episodes
    there, so iTunes is reading my feed correctly, but
    why aren't they showing up on the main page?
    http://phobos.apple.com/WebObjects/MZStore.woa/wa/view
    Podcast?id=200063590
    Does anyone know if there is a LIMIT to how many will
    show up on that main page? I have 45 being
    displayed, but my feed has 59 separate items. I've
    not read anything that indicates there is a limit.
    any help would be appreciated!!
      Windows XP  
    I have exactly the same problem with the feed from my podcast at
    http://angus_sessions.podOmatic.com/rss2.xml
    My other podcast downloads fine.
    The same problem is experience in iTunes on both my Mac and PC so it appears to be aniTunes issue, particularly since Juice has no problem updating using the same rss feed.
    It would be great if the iTunes team would comment.
    iMAc   Mac OS X (10.4.3)   Issue also on XP Pro

  • I have purchased a TV show series. I show that from the purchased screen it has downloaded. However it is not in my library. How do I watch this episode? Several of the episodes are in the library but a few did not make it there. Help please!

    I have purchased a TV show series. I show that from the purchased screen it has downloaded. However it is not in my library. How do I watch this episode? Several of the episodes are in the library but a few did not make it there. Help please!

    Sometimes things have inconsistent labeling.  Check your Recently Added playlist.

  • [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

    When selecting a menu item I used to click the left mouse button and hold it down, move the pointer to the desired menu item and release the mouse button. Everything works fine in the mine menu, but there's a problem when adding new adjustment layer from the layer panel: when I release the button nothing happens, I have to press the button again. In previous PS version it worked fine. How can I fix this?

    I don't think that is user fixable, meaning you'll have to wait till adobe fixes it with an update.
    Photoshop cc 2014
    windows does not work
    mac does work
    Did you already post over here:
    [Photoshop CC 2014] Click&hold-move-release doesn't work when adding adjustment layer from the layer panel

  • How can I copy pictures from my computer to my SX50 so I can show them from the camera?

    How can I copy pictures from my computer to my SX50 so I can show them from the camera?

    I know this is an older thread, but FWIW you should be able to open up My Computer in Windows, locate your memory card there, then either drag and drop and/or copy and paste images from your computer's hard drive onto the memory card.

  • [kde] "Only show tasks from the current desktop" doesn't work for max

    Hi,
    I have two monitor setup (laptop + main monitor) and I would love to use "Only show tasks from the current desktop" option in KDE Task Manager but for some strange reason it doesn't work for me. Well, it works but only partially - for restored/unmaximized windows. When I maximize one it appears on the Taskbar on both screens. Is this normal? May it be due to the fact that I've placed Taskbar on top of the screens?

    Did you miss this bit
    "Graphics : 1 GB NVIDIA Quadro 600 (1DP & 1DVI-I) (1DP-DVI & 1DVI-VGA adapter) (ELGA13) 1"
    And the final image clearly states the type of Graphics Card he has
    Photoshop CS6 GPU FAQ
    Tested video cards for Photoshop CS6
    Adobe tested the following video cards before the release of Photoshop CS6. This document lists the video card by series. The minimum amount of RAM supported on video cards for Photoshop CS6 is 256 MB. Photoshop 13.1 cannot display 3D features if you have less than 512 MB of VRAM on your video card.
    Important: This document is updated as newly released cards are tested. However, Adobe cannot test all cards in a timely manner. If a video card is not listed here, but was released after May 2012, you can assume that the card will work with Photoshop CS6.
    Adobe tested laptop and desktop versions of the following cards. Be sure to download the latest driver for your specific model. (Laptop and desktop versions have slightly different names.)
    nVidia GeForce 8000, 9000, 100, 200, 300, 400, 500, 600 series
    nVidia Quadro 400, 600, 2000, 4000 (Mac & Win), CX, 5000, 6000, K600, K2000, K4000, K5000 (Windows & Mac OS)

  • From the Apple TV, I chose netflix from the main menu. I then chose the show Prison Break.  Only 22 episodes from Season 1 are displayed.  When chosing NetFlix from my Blue Ray player I see all the episodes.

    From the Apple TV, I chose netflix from the main menu. I then chose the show Prison Break.  Only 22 episodes from Season 1 are displayed.  When chosing NetFlix from my Blue Ray player I see all the episodes.

    Those are all the episodes for that season, if you want to view another season you need to select it

  • I just downloaded the new itunes update, now I can't copying TV shows purchased from the library to my backup computer, it says the files are invisible. Never had any problem doing it until the update.

    I just downloaded the new itunes update, now I can't copying TV shows purchased from the library to my backup computer, it says the files are invisible. Never had any problem doing it until the update. I have a Mac Pro G5 OS 10.6.8. The desktop hidden files app doesn't reveal the TV shows.

    found a solution in a different discussion.. thank god.

  • Format address panel in iCal to show Department from the address book. At the moment it is showing 'Job Title' even though that has been removed in Address Book.

    Can anybody help please How do I Format address panel in iCal to show Department from the address book. At the moment it is showing 'Job Title' even though that has been removed in Address Book.

    I have a similar problem. I actually spoke with a Paypal customer Representative a few months back who informed me that they had deleted all of my previous *Hidden* Address but when I just purchased an item today on a online merchant's site that I had never been to before and checked out using their Paypal option, I noticed that my default shipping address was in fact my old address and when I went to change the address to my current address, I noticed all of the old addresses I ever used were still there. I've just spoken with 2 separate paypal representatives who confirmed on their end that all of the old address have been deleted and the only one they have on file is my current address. Can anyone provide me an explanation as to why the old hidden address can still be showing up when I check out on merchant's sites using paypal even after they've seemingly been deleted? The last Representative suggested clearing out my browser's cache, but I don't believe that will resolve my issue. Thank you in advance.

  • Wizard in a dialog window does not show errormessages from the database

    I have a main window and some wizards defined with JHeadstart. The wizards are started as dialogs to get them in a separate windows from the main window. This gives me a cancel and a save button for the dialog in addition to the ones for the wizard.
    I have managed to take away the cancel and save button from the dialog using custom .vm files. The problem is that then pressing the FINISH button for the wizard it closes the dialog window without showing errormessages from the database (ie constraint messages) and these only appear in the log. If I use the save button from the dialog it gives the errormessages, but does not exit the dialog even if there are no errormessages.
    Is this a bug or is there another way I should have done this ?
    The code for starting the wizard.
    <af:commandLink id="StartVeiRegMerknad"
    text="#{nls['TABLE_TITLE_VEIREGMERKNAD']}"
    action="dialog:StartVeiRegMerknad"
    useWindow="true" partialSubmit="true"
    launchListener="#{DialogLaunchHandler.handleDialogLaunch}"
    windowWidth="600" windowHeight="600"
    returnListener="#{backing_show.backFromPopup}"
    immediate="true">
    <f:actionListener type="oracle.jheadstart.controller.jsf.listener.DoRollbackActionListener"/>
    <f:actionListener type="oracle.jheadstart.controller.jsf.listener.ResetBreadcrumbStackActionListener"/>
    <af:resetActionListener/>
    </af:commandLink>

    Your finish button should call a custom managed bean method that executes the commit, checks whether there are errors, and only close the dialog of there are no errors.
    To close the dialog in code, you can use this:
    AdfFacesContext adf = AdfFacesContext.getCurrentInstance();
    adf.returnFromDialog(null, null);
    which is similar to using the <af:returnActionListener/> that you probably now used but should be removed from your finish button.
    Steven Davelaar,
    JHeadstart Team.

Maybe you are looking for