User Tag List

Results 1 to 6 of 6

Thread: Scan a folder for all music files and add them to a list

  1. #1
    Clicker 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
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Scan a folder for all music files and add them to a list

    Hello.

    My user has the option to add a directory with his own music files. So he can select a folder, then all files found in that folder + subfolders should be added to a list, which will play the music..

    How to do this?

    2xD.

  2. #2
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,010
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Use the file-folder object > start a folder/file browsing loop > ON Loop: Add Line to List (Filename)

    then when User-Double Clicks list: Play MP3 with DirectShow object (filename: current selected (list))
    Want to learn Clickteam Fusion 2.5?




  3. #3
    Clicker 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
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What if the directories does not only consist of music files. How to add only music files of the folder + its subfolders ?

  4. #4
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,010
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    After the above operation, you can then run another fast loop checking for the extension of each line like so:

    Fastloop("ScanList") (Nr of Lines Times):

    +On Loop Scanlist:

    +(List.Number(Fastloop.index)) <> Right$(".mp3", 4): Delete (List.line)
    Want to learn Clickteam Fusion 2.5?




  5. #5
    Clicker 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
    Nov 2012
    Posts
    121
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you. I got it!

  6. #6
    Clickteam Clickteam
    Danny's Avatar
    Join Date
    Aug 2007
    Location
    United Kingdom
    Posts
    3,010
    Mentioned
    21 Post(s)
    Tagged
    2 Thread(s)
    Excellent, glad to be of assistance!

Similar Threads

  1. Loading files such as INI,Text files, List Files?
    By Gibbon in forum SWF/Flash Export Module Version 2.0
    Replies: 3
    Last Post: 21st July 2012, 07:41 AM
  2. Scan a directory and rename all files (e.g. *,jpg)
    By Leander in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 20th June 2011, 10:12 PM
  3. loop music files list
    By nick_Peoples in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 21st February 2011, 01:17 PM
  4. music from folder
    By JoOCoGames in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 19th November 2007, 10:10 AM
  5. How to get a list of files in a folder with FTP?
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 1st July 2007, 09:14 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
  •