User Tag List

Results 1 to 5 of 5

Thread: MMF2 - Saving File at End of Application

  1. #1
    Clicker Fusion 2.5 DeveloperHTML5 Export Module

    Join Date
    Jun 2006
    Posts
    1,469
    Mentioned
    10 Post(s)
    Tagged
    0 Thread(s)

    MMF2 - Saving File at End of Application

    I have code at in my application so that when the user selects to exit the application a message box comes up and asked if they want to save a file that is displayed. If no the application ends. If yes the file is to be saved.

    However, the file is never saved.

    The code is:

    When user selects menu option "Exit Application"
    Then Show Message Box.

    If "Yes" is selected in Message Box
    then save the file then end the application.

    Any suggestions?

  2. #2
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: MMF2 - Saving File at End of Application

    How are you saving your file and perhaps you need to check to make sure the file gets saved prior to exiting the app.

    I know the built in save frame position you need to use the condition file is saved before you end the application.

  3. #3
    Clicker Multimedia Fusion 2 Developer
    Jax's Avatar
    Join Date
    Jul 2006
    Location
    UK
    Posts
    702
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2 - Saving File at End of Application

    Make a new menu item which doesn't automatically close the application and then use the "End Application" action when you want it to end.

    However, this does not help if they clicked the cross on the title-bar.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    Stephen's Avatar
    Join Date
    Aug 2008
    Location
    Montana
    Posts
    4,515
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2 - Saving File at End of Application

    You could also change the condition to "close window has been selected."

    stephen1980
    _____________________________________________
    Nivram's Examples -Need extensions? Send me a PM.-


  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF2 - Saving File at End of Application

    End of Application works kinda like a loop. IN fact you can run loops while your application is closing if you do it right.

    The trick is to add the condition "End of Application" at the top of all the conditions that you want to check at the end of app. Including the one that checks for the message box button.

    However there is a catch. The conditions after the "End of Application" have to be repeatable. They can't be one time events. So in order to check what button is pressed using the message box object use this code for the "Yes" button.

    getLastMessageBoxButtonID( "MessageBox object" ) = 9

    Here's a screenshot of the condition:

    http://www.jsoftgames.com/exampleendcheck.bmp

Similar Threads

  1. MMF2 won't save file after running application
    By DaveC in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 8th January 2013, 07:44 AM
  2. Building and saving an audio clip from an MMF2 application.
    By Apex in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd May 2012, 01:42 AM
  3. Saving .ini's within application files?
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 10th May 2010, 11:50 AM
  4. Saving Application File On Networked Computers
    By drnebula in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 30th December 2008, 11:51 PM
  5. File object - file selector saving issues
    By Gary_Molton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2006, 08:25 PM

Posting Permissions

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