User Tag List

Results 1 to 5 of 5

Thread: How do I retrieve THIS from the "File Object"

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    How do I retrieve THIS from the "File Object"

    Hi everyone,

    I need to create a list in a list box of all of the files selected by the user.

    I use the File Object to prompt the file select dialogue, and I can use the File selector> multi-select feature with a fastloop to get the list of all the selected files, BUT:

    What I want is:

    filefolder\file.xtn

    I only want the folder the file is in and NOT the full path, followed by the name of the file itself...

    I can get JUST the file name, or the full path...but nothing I try seems to get me JUST the name of the folder that the file is from.

    What am I missing?

    thanks much.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I retrieve THIS from the "File Object"

    What about using the String Parser? Set the delimiter to '\' and/or '/'. Will allow you to retrieve all the folders separately the file is in.

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module
    Nifflas's Avatar
    Join Date
    Jul 2006
    Posts
    2,613
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I retrieve THIS from the "File Object"

    *Eehhrmusestringtokenizerinsteadhrmhm*

  4. #4
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I retrieve THIS from the "File Object"

    As Nifflas said, the String Tokenizer would be much better to use.

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleSWF Export Module

    Join Date
    Jun 2006
    Location
    St. Ave France
    Posts
    1,166
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: How do I retrieve THIS from the "File Object"

    Thanks guys. thats exactly what I did. I used the string tokenizer and seperated the text string using the "\"

    worked like a charm.

Similar Threads

  1. "Load text file" from "The Edit Object" BUG?
    By MOBii in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 19th December 2013, 05:43 AM
  2. [BUG] Ini object interferes with "Play sample from file" events
    By Strife in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd September 2013, 03:21 PM
  3. Pressing the "F2" key and Choosing "New" From the File Menu Aren't the Same (bug)
    By redpandagames in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th October 2012, 06:42 AM
  4. Issues with "Clickteam Movement Controller" and "Runtime" Object
    By jimmyorpheus in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 29th November 2011, 07:10 AM
  5. I seem to have broken my "File" object...
    By RGBreality in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 5th July 2011, 04:33 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
  •