User Tag List

Results 1 to 5 of 5

Thread: Does recursion work?

  1. #1
    No Products Registered

    Join Date
    Jul 2006
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does recursion work?

    Well... I've been using the file extention and tree extention to create a selective file backup app for someone. But now I've hit something, and can't figure out what my app is doing anymore. I have some simple recursion in the app right now, so maybe recursion just doesn't work in MMF2?

    If you know, please answer. This isn't urgent, but I'd like to know if recursion works before I try to fix my program even though I'm trying to use something that doesn't exist.

    (Recursion is using the same loop inside of a loop, for example calling "fastloop1" in a "fastloop1" trigger.)

    Thanks for any help.

  2. #2
    No Products Registered

    Join Date
    Jan 2007
    Location
    NC - USA
    Posts
    261
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does recursion work?

    Not sure if it works, i always used the 'Set loop index' command to simulate a loop starting over. Try that and see if it works.

  3. #3
    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: Does recursion work?

    recursive object for MMF 1.5 ;p

  4. #4
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jun 2006
    Location
    England
    Posts
    3,546
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: Does recursion work?

    Loop A can trigger Loop B.
    Loop A can set the loop index of Loop A.
    Loop A cannot trigger Loop A.
    Loop A cannot trigger Loop B which in turn triggers Loop A.

    If you try then the MMF2 runtime will close itself. Or, in the case of the Fastloop Object, it will forget the initial loop in favour of the new loop.
    .:::.Joshtek.:::.

  5. #5
    No Products Registered

    Join Date
    Jul 2006
    Posts
    124
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does recursion work?

    From my experiance, because I just tried to make a recursive loop, it does not close the app, just doesn't continue the encompassing loop. (When not using the fastloop object, just the built in loops.)

    I'll try stAtrill's method, and hope it works.

    EDIT: Doesn't work like I would think, so I'll have to make up a method that doesn't use recursion. I only wish it was easier to program extentions for MMF2 (or somehow my view on LUA changes... right now I think it's horrible, I hate basic) otherwise I would be all over it.

Similar Threads

  1. Cant get this to work right
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 30th August 2012, 10:11 AM
  2. Why does this not work
    By Jason in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th July 2009, 08:23 AM
  3. Why won't this work?
    By Game_Master in forum Vitalize
    Replies: 4
    Last Post: 12th February 2008, 11:04 AM
  4. Can MMF 2 Work with the following?
    By Merrie in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th December 2006, 03:19 AM
  5. Should this work?
    By Clicktastic in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 19th August 2006, 03:08 AM

Posting Permissions

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