User Tag List

Results 1 to 7 of 7

Thread: How Loops Work...

  1. #1
    Clicker Multimedia Fusion 2

    Join Date
    Sep 2006
    Location
    Britain, South Coast
    Posts
    1,030
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How Loops Work...

    Just a little question about loops.

    We see this in the editor, right?

    On Loop "Blah"
    ...

    On Loop "Something Else"
    ...


    ...and so on. Is the 'On Loop "..."' just ONE condition? Basically, is this statement correct:

    - 'Run Loop "My Loop"' executes EVERY 'On Loop' trigger in the frame.
    - MMF then tests the parameter of each one, saying "Are you called 'My Loop'?"
    - Those who say 'Yes I am "My Loop"' return TRUE, and are executed.


    This would mean that if you have 1,000 "On Loop" conditions, but only one of them is named 'My Loop', the action 'Run "My Loop"' would trigger all 1,000. But 999 of them would return FALSE and therefore not run.

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Loops Work...

    from what I'm aware, they would all run

  3. #3
    No Products Registered

    Join Date
    Dec 2006
    Posts
    1,332
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Loops Work...

    Quote Originally Posted by neat_Kliker2
    from what I'm aware, they would all run
    No, why would loops with different names all run with an on loop action. Dines means that they would all be triggered, but their actions would not be executed because they would return false because of the name difference.

  4. #4
    No Products Registered

    Join Date
    Jan 2008
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Loops Work...

    I think only Clickteam can answer this.

  5. #5
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Posts
    2,023
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Loops Work...

    oh different names, sorry thought you meant 1000 different condition loops with the same name, they would all run if you ran the loop once

  6. #6
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How Loops Work...

    I don't think that's what he means.

    are you asking if having many "DIFFERENT!" fast loops in the same frame would slowdown the execution of any one loop?...

    if so then yes however the fact that they do return false means that no sub-conditions within that on loop will be tested and no actions will be taken so it is just string comparing.

    (i could be way off what you mean.)

  7. #7
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: How Loops Work...

    Clickteam has talked. Look at the last post:
    http://www.clickteam.com/epicenter/ubbthreads.php?ubb=showflat&Board=2&Number=59209

    EDIT: I try to summarize what Yves said some time ago in the french forum:
    http://www.clickteam.com/epicentre/ubbthreads.php?ubb=showflat&Number=4843&#Post4843

    When you launch a loop, MMF compares the name of the called loop with the name of all the loops created in the frame. MMF will only execute the actions corresponding to the right name, but time was lost due to the name comparison.
    The more 'On Loop' events you have, the more time MMF will need to launch them. That's why it's better to store 'On Loop' events in groups and activate these groups only when necessary.

    At that time Yves said that it would be nice if some optimization about loops could be implemented at the same time than the HWA version is developed. No news so far.

Similar Threads

  1. Not using Loops
    By EdibleWare in forum SWF/Flash Export Module Version 2.0
    Replies: 7
    Last Post: 7th February 2011, 06:23 PM
  2. Fast Loops vs Grouped Fast Loops vs ForEach
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 6th August 2010, 12:22 PM
  3. Loops with SWF
    By Tisnart in forum SWF/Flash Export Module Version 2.0
    Replies: 25
    Last Post: 19th July 2010, 04:13 PM
  4. little confused abouts loops inside loops!
    By Gibbon in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 30th January 2007, 06:37 PM
  5. Two loops using one detector?
    By Isbeorn in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 6th September 2006, 04:59 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
  •