User Tag List

Results 1 to 6 of 6

Thread: Subapp and Fastloop

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Subapp and Fastloop

    I search for a way to display an animation while a heavy fastloop is running. The calculation may need a few minutes. So i better show something animated to proof that the app is not freezed.

    Well, a running fastloops stops the mainloop as long as it runs. Unfortunately this also happens with the mainloop of a running subapplication. Be it internal as another frame or external as a CCN ( have just tested this one in MMF 1.5, because i was not able to save as a CCN under MMF2 so far). And this goes in both directions. When the Fastloop runs in the Subapp it stops the Mainframe to go on.

    Does somebody know of a valid way to display a "busy" animation while such a heavy fastloop is at work?

  2. #2
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Jun 2006
    Location
    Darlington, UK
    Posts
    3,298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and Fastloop

    The only way is to divide the fast-loop between frames.

    i.e. don't do it all in one go, instead something like this:

    Counter "max loops" = 100004
    Counter "loop index" = 0
    "loop index" < "max loops"
    -Start Loop "A" for min(1000, "max loops"-"loop index") loops
    On loop "A"
    -Do whatever
    On loop "A"
    -Add 1 to "loop index"

    EDIT: assuming MMF has a "min" function, I haven't looked.

  3. #3
    No Products Registered

    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    1,141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and Fastloop

    I got a progress bar working under the same circumstances in MMF2. Don't know if it works the same in MMF1.5 though...

  4. #4
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and Fastloop

    Dynasoft, that's what i wanted to avoid. I don't want to interrupt the fastloop. But nevertheless thanks

    A progressbar? Ah, haven't thought of this one. Good tip. Thanks

    And don't worry, i need it for MMF2. I just tinkered around in MMF 1.5 because i wasn't able to save a CCN under MMF2 ...

  5. #5
    No Products Registered

    Join Date
    Jun 2007
    Location
    Croatia
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and Fastloop

    you can also do this:

    * LoopIndex("loop") mod 1000 = 0
    - [do something related to refreshing some graphics on screen]

    that way, every 1000 loop iterations, your program will do something with graphics (update a percentage or switch to next animation frame or something like that)... you can also set 1000 to any appropriate value...

    K

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    Tiles's Avatar
    Join Date
    Jun 2006
    Posts
    1,359
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Subapp and Fastloop

    Thanks for your posting

    The problem with all this loopinterrupting methods is that the animation is dependand of the fastloop speed now. That's why i don't want to use it

Similar Threads

  1. Can a Fastloop run within another Fastloop?
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 18th November 2011, 10:48 PM
  2. Subapp over subapp issues
    By Tiny in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 28th July 2010, 02:33 PM
  3. fastloop help
    By falkon in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th April 2008, 10:14 PM
  4. Slowing down fastloop
    By Horn in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th January 2007, 08:13 PM
  5. Bug: Fastloop
    By Sphax in forum File Archive
    Replies: 7
    Last Post: 15th November 2006, 10:36 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
  •