User Tag List

Results 1 to 8 of 8

Thread: Subapp and "End the application"

  1. #1
    RayMarble
    Guest

    Subapp and "End the application"

    In my application, a subapp is called at a certain point. When user clicks anywhere within subapp (which shares the global values / strings with the main app), the events are (in this order):

    Set Global String "State" to "Play"
    End the application.

    However, the Global String "State" never gets changed to "Play". Does this mean "End the application" is always executed first?

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and "End the application"

    During my expermentation I had problems like this. To answer your question...yes.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    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: Subapp and "End the application"

    Francois would know for sure but perhaps the variables are updated at the end of the event loop cycle where end of application is executed immediately when its called.


  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    Fanotherpg's Avatar
    Join Date
    Jul 2006
    Location
    High Wycombe, Buckinghamshire, UK
    Posts
    3,663
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and "End the application"

    To 'skip' it. Divorce it to two events in first one, change the variable in second one when variable is changed (it's equal to Play) end the application.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Subapp and "End the application"

    The global variable is updated immediately with the action. End the application sets a flag and the application actually ends at the end of the loop.
    Are you sure the global variables are shared between the main application and the sub app?

  6. #6
    RayMarble
    Guest

    Re: Subapp and "End the application"

    Yes, they are shared. I did more experimenting and it seems that the problem wasn't in the Global String not being set correctly, but that the Button objects (which were on the layer underneath) were catching the clicks of the mouse (used as a trigger for closing the subapp) and resetting the Global String. The subapp was planned to be modal but I had to change it recently to comply with Flash exporting.

    Statistically it's impossible but it seems I must have clicked the same spot where the button was 20+ times in a row during testing. Maybe I should just drop everything and go play lottery

  7. #7
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and "End the application"

    Hi Francois. I think the "end the application" loop is not working right. I have used it with variables and the application ends before updating the variables, but not since build 248.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Re: Subapp and "End the application"

    So if you can send me an example, this would be good.

Similar Threads

  1. Difference Between "IOS Application" and "IOS final Xcode Project"
    By Decoamorim in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 31st May 2013, 09:36 PM
  2. "Set application" of the subapp doesn't work
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th December 2012, 09:31 AM
  3. "Blinking" application when using "Machine Ind. Speed"
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 29th December 2011, 10:31 PM
  4. Can't Run SubApp "This is not an application file"
    By JimJam in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 17th January 2010, 08:43 AM
  5. Subapp and "Jump to a frame" action doesn't work
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 2nd December 2008, 02:10 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
  •