User Tag List

Results 1 to 9 of 9

Thread: Multiple Records

  1. #1
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Multiple Records

    Hey, I really need help...

    I'm making an E-Catalogue in MMF2. I have a load of text and image files with the information required, and I need to put them sort of as records. Basically, I need to have them all in 1 frame, with a back/forward button to go through the entries. It will need to load from the text files at runtime. If you've used forms in Microsoft Access, you'll probably get what I'm talking about, it's kinda the same but with big chinks of text and images.

    Is there a way (if I name the text files 0, 1, 2, 3, 4 etc) for MMF2 to import a text file based on an Alterable Value (so if the value was 1 it would import text 1 and image 1), and find the last numbered file to disable the 'next entry' button (so it won't load empty files after that point)?

    Sorry if that's a bit confusing, it's hard to put into words...

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Multiple Records

    The way i have done it in the past, is store the information in an array, and use a counter, to set the position of the catalog, and then load information in from the array.

    So set the counter to 1 at the start of the frame, read in from the array (or arrays) based on position 1, then when the player presses next, add 1 to the counter, then read in information from the counter position.

    That may not make sense, hope it does alittle.

    Jason

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Multiple Records

    Oh for pictures i would store them in a folder using a number (1.jpg, 2.jpg) and again use the counter to load in the picture

    Jason

  4. #4
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Records

    Quote Originally Posted by JasonDarby
    The way i have done it in the past, is store the information in an array, and use a counter, to set the position of the catalog, and then load information in from the array.

    So set the counter to 1 at the start of the frame, read in from the array (or arrays) based on position 1, then when the player presses next, add 1 to the counter, then read in information from the counter position.

    That may not make sense, hope it does alittle.

    Jason
    I think I get it. Thanks
    If I can't get it to work I'll repost :P

  5. #5
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Records

    I would use a Tree control object to do it. You'll have to check how many files are in the folder, and set some Alterable Value to that number.
    Then when the user press next button, add 1 to another Alterable Value, and load data, or if the user press previous, subtract 1 from that value, and load data.
    When 2nd value (current file) is equal to 1st value (number of files), disable the "Next" button.

  6. #6
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Records

    Quote Originally Posted by Raylax
    Quote Originally Posted by JasonDarby
    The way i have done it in the past, is store the information in an array, and use a counter, to set the position of the catalog, and then load information in from the array.

    So set the counter to 1 at the start of the frame, read in from the array (or arrays) based on position 1, then when the player presses next, add 1 to the counter, then read in information from the counter position.

    That may not make sense, hope it does alittle.

    Jason
    I think I get it. Thanks
    If I can't get it to work I'll repost :P
    Oh, wait... just had a thought... the person who I'm making it for won't have MMF2, so they'll need to update it through the text files.

    EDIT: Pasiunia, that may just sort it. Thanks.

  7. #7
    Clicker Multimedia Fusion 2
    Greg's Avatar
    Join Date
    Dec 2006
    Location
    Poland
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Records

    They don't need MMF2 to use it. It will work fine if you'll compile it into an EXE file.

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Multiple Records

    I made an app for our church's Skate Park. It stores the Member's info, his Picture, and can store Notes on a per-day basis.

    I used the SQLite object, which is great! Each Member was assigned it's own 10 digit number (automatically sequenced) and when the picture was taken (from a webcam) the jpg had the same 10 digit number as the member, and was stored in a "pictures" folder.

    not exactly sure of your purpose, but the SQLite object was perfect, and very flexible for me.

  9. #9
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperiOS Export ModuleMac Export ModuleSWF Export ModuleUnicode Add-on
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    JasonDarby's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    4,938
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)

    Re: Multiple Records

    Yes they dont have to have mmf... you can use edit boxes to allow them to change information, all your doing is saving to the array and reading back into the edit box.

    Jason

Similar Threads

  1. multiple instances spawning at multiple places
    By CPW in forum Multimedia Fusion 2 - Technical Support
    Replies: 17
    Last Post: 22nd February 2009, 12:38 AM
  2. Importing multiple animations as multiple frames
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 25th November 2008, 09:36 PM
  3. Multiple PMOs for multiple Objects example
    By Blood_Wist in forum File Archive
    Replies: 1
    Last Post: 31st May 2008, 01:48 AM
  4. Multiple Turret Shooting With Multiple Targets
    By Brandon in forum File Archive
    Replies: 4
    Last Post: 29th January 2008, 02:34 AM
  5. ODBC Problem - Not returning records
    By droberson in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 23rd June 2007, 03:40 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
  •