User Tag List

Results 1 to 3 of 3

Thread: Counters pause on opened popup menu?

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    twister's Avatar
    Join Date
    Jan 2007
    Location
    Pacific Northwest USA
    Posts
    376
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Counters pause on opened popup menu?

    I searched the forums and found little about this question.

    I am using build 246. I have a counter that subtracts 1 every second. When a menu is opened the counter pauses and loses that amount of time while opened. Is # 2 below correct for build 246?

    ----
    1) MMF2 Build #243 (BETA) stated that the Runtime : the application no longer pauses when you open a menu or popup menu, or move/resize a sub-application (note: only if the "run while resising" option is selected in the properties of the application)

    2) MMF2 Build #243 stated that the Popup Menu object: (specific to the beta version of the build 243) random crashes when you show the menu when the "Run while resizing" option is selected. The application is now always paused when you show the menu.
    ----

    If so to # 2, is there a work around to keep a counter object from pausing?

    If not, is there a way to extract hours, minutes and seconds from the timer count down object, i.e. to display 00:00:00 (hours:minutes:seconds) using a text string. The count down object does not pause and only offers the total number of seconds in thousands, i.e. the count down set to 30 minutes retrieves 180000

    I've managed to extract, calculate and display the hours and minutes in a text string from the count down clock, but my mind locks trying to calculate the seconds for display. Thus, my reason for using a counter, subtracting 1 every second, resetting every 60 seconds. When the counter pauses, the count down minutes turn over out of sync with the my generated seconds. Any thoughts?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Counters pause on opened popup menu?

    The best way may be to keep using the timer/countdown object - from what I've seen it continues even when everything else is paused.

    To retrieve hours, minutes and seconds from a base value of number of seconds, use these:

    Hours: Floor(num / 3600)
    Minutes: Floor (num / 60) mod 60
    Seconds: num mod 60

    You can place these in an hours:minutes:seconds text string by using Str$(formula goes here) + ":" + Str$(... etc. (Someone please correct those if they're wrong, work's busy just now and this might be the worst explanation I've ever given...)

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleFirefly 3D ModuleInstall Creator Pro
    twister's Avatar
    Join Date
    Jan 2007
    Location
    Pacific Northwest USA
    Posts
    376
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Counters pause on opened popup menu?

    Thanks DavidN .. I used num mod 6000 instead of num mod 60 for seconds. The mod 60 only displayed seconds in hundreds and thousands. The mod 6000 displayed seconds, hundreds and thousands. I had to add a len trigger to keep a four digit second display, (adding a 0 or 00 in front when only 3 or 2 digit seconds where present, in thousands) and left$ 2 to extract just the 60 second text from the four digits, thus always giving me a two digit display, 00 through 60.

    works fine thanks again

Similar Threads

  1. Popup menu bug?
    By Ran_TH in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd September 2008, 09:11 AM
  2. popup menu to NOT pause app?
    By ClickerGuy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 31st October 2007, 05:19 PM
  3. Check if menu is opened?
    By Looki in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 2nd March 2007, 12:43 PM
  4. re: popup menu...
    By TDA in forum Extension Development
    Replies: 2
    Last Post: 5th February 2007, 02:03 PM
  5. Popup menu
    By Sphax in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 7th August 2006, 10:03 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
  •