User Tag List

Results 1 to 9 of 9

Thread: List object

  1. #1
    Clicker Fusion 2.5
    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)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    List object

    I am using the list object to display the contents of a folder and this is kept offscreen. I have 2 buttons which control the selections for the list object. one button scrolls up through the list whilst the other scrolls down. I have managed to get it so that when i press the up button on line 1 it jumps to the end of the list, the problem i am having is that when the down button is pressed on the final line it jumps to line 2!!!

    Can anyone help please?

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Derby, United Kingdom
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    When button is pressed + current list item number is equal to total line numbers, then set the line number to 1

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    You might want to check the state of the "1 Based Index" property, also.

  4. #4
    Clicker Fusion 2.5
    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)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    It is on a 1-based index already and my code for going back to line 1 is as follows:

    Button pressed
    + Counter (line number) = total number of lines
    ------ set Current line to line 1

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Derby, United Kingdom
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    is that what you wanted?

    if you want it to stop rather than cycle back to beginning changed the set line to total number of lines...

  6. #6
    Clicker Fusion 2.5
    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)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    I think you misunderstand. This code does not work. I want it to return to line 1 but what it does jump to line 2

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Derby, United Kingdom
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    I think the problem is you need to split the events as follow

    Button Press + List Value is different to total number
    - Add one to list selection

    Button is pressed + List value is equal to total number
    - Go to line 1

    If you don't add checking for the first, as in not the last line then when you run the last line it will skip to 1 and then run code to add 1 to selection also...

    You will also need to do the same in reverse for cycling from start to end of the list

  8. #8
    Clicker Fusion 2.5
    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)

    Join Date
    Oct 2006
    Location
    In a Dark room with only a lamp
    Posts
    367
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    I already have this code setup as above. if you try setting it up yourself you will see that it jumps to line 2 straightaway!

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Jun 2006
    Location
    Derby, United Kingdom
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List object

    Next time I am on windows I will give it a shot, but I know I have done this before and it works...

Similar Threads

  1. [BUG] LIST OBJECT - Can't Insert to list
    By Tuna in forum Android Export Module Version 2.0
    Replies: 3
    Last Post: 20th August 2012, 06:45 AM
  2. List object simply doesn't load a list file...
    By Pedro Almeida in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 10th February 2012, 12:46 AM
  3. List object - loading File List
    By Nathan in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 9th March 2008, 09:11 PM
  4. bug: List object doesnt show list of files ...
    By Rushino in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 1st November 2006, 11:46 PM
  5. List Object Bug - "Load Files List"
    By MelliGeorgiou in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st October 2006, 07: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
  •