×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2011
    Posts
    5

    Question Exit button for application in FL4, not widget.

    Hello,
    I need some help with this, I wish to know how to exit an application made in fl4 that is packed in sis.
    I've tried this:
    PHP Code:
    exitBtn.addEventListener(MouseEvent.MOUSE_DOWNexitApp);

    function 
    exitApp(e:MouseEvent):void{

         
    fscommand('Quit');


    but is asking me for to allow access to the device, and then after restarting the app, i need something that closes the application right away, something like the old fscommand2('quit'), but for fl4 that runs on an N8.

    Thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Exit button for application in FL4, not widget.

    Hi manxana,
    I just tested and fscommand('Quit'); works fine on FL 4. You just need to use either this packaging technique or this one (CDocumentHandler Class) because online packager use an old technique i.e RFile Class which doesn't allow you to launch your application from private folder and avoid security issues with your content.

    Best Regards,
    SajiSoft

  3. #3
    Regular Contributor
    Join Date
    Jan 2009
    Posts
    100

    Re: Exit button for application in FL4, not widget.

    I have also faced the same issue before.

    First time you close the app from FlashLite 4 this way, it will ask you to allow, if you allow, it restarts the app and if you again close, it close the application.
    Onwards you are never asked this way and the app closes normaly.

Similar Threads

  1. FL4 AS3 & N8 close button issues and links
    By evilpaul in forum [Archived] Flash Lite on Nokia Devices
    Replies: 10
    Last Post: 2010-11-30, 19:43
  2. Replies: 4
    Last Post: 2010-09-09, 10:37
  3. want to remove the exit button of my application
    By lokesh_kumar_s in forum Symbian
    Replies: 5
    Last Post: 2010-08-06, 18:18
  4. How to apply style for forum button in widget
    By smanikandan14 in forum Symbian
    Replies: 0
    Last Post: 2009-07-16, 04:22
  5. SOS! EXEC3 error when quit application using Nokia 7650 Exit Button
    By rochellesun in forum Mobile Java General
    Replies: 0
    Last Post: 2003-02-27, 00:37

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×