User Tag List

Results 1 to 4 of 4

Thread: Choose object based off expression?

  1. #1
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)

    Choose object based off expression?

    Is it possible to have an expression choose which list object to work with based off an external bit of data?

    For example, I have the following lists:
    List_Fruit
    List_Vegetables
    List_Meat

    I also have a drop box with the following:
    Fruit
    Vegetables
    Meat

    Can I set up an event that will check "List_[string from the drop box]"? I've tried various obvious options and none have worked. The reason for this is I am playing with a scheduling program that draws from ~40 people, each of which had various skills (about 12 total skills) and is available at certain times (6 possible times). I made a list for each skill and each time, populating it with whoever fits those parameters. I'd like to use as few events as possible to dig through all these things, rather than making 40*12*6 separate series of events...

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleMac Export ModuleSWF Export Module
    Game_Master's Avatar
    Join Date
    Jul 2007
    Location
    England
    Posts
    1,705
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here you go - hopefully this will help.

    Select a list in the dropdown box, and then click on the button. The application will pull all of the list items from the selected list, and add it to the big list at the bottom.

    It's pretty simple but let me know if you have any questions.

    Application.mfa
    Made in MMF2 so will work in both MMF2 and F2.5.

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My personal recommendation would be to use a Text Array rather than multiple lists. X = 0 could be your first list, with the dfiferent items corresponding to different Y values. Then to change the list you just change the X index you're scanning from. (3,4) would be the fourth item on the third list if you used one based indexes, (1, 6) would be the sixth item on the first list.

  4. #4
    Clicker

    Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)Universal Windows Platform Export Module (Steam)
    ratty's Avatar
    Join Date
    Apr 2012
    Posts
    1,165
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    These are both great responses. I think I'll use the example to finish up the concept I'm on now but work with the arrays in the future. Thanks guys!

Similar Threads

  1. Replies: 2
    Last Post: 20th February 2014, 06:15 PM
  2. Object-based MMF Interface
    By Retriever2 in forum Lua Scripting
    Replies: 33
    Last Post: 20th September 2010, 05:40 AM
  3. How to choose the nearest object?
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 2nd February 2010, 12:22 AM
  4. Choose Pixel Shader by expression
    By Raylax in forum Hardware Accelerated Runtime
    Replies: 3
    Last Post: 22nd October 2008, 06:07 PM
  5. Objection Creation based on expression?
    By pirodaggar in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 1st August 2008, 07:47 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
  •