User Tag List

Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22

Thread: Forgot how to use arrays,,,:/

  1. #11
    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: Forgot how to use arrays,,,:/

    That's perfect Shawn.

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

  2. #12
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Forgot how to use arrays,,,:/

    Quote Originally Posted by Shawn
    I've been able to save files just by doing Appdir$ + "arr.txt" for example. Any reason why I should do that differently? It saves it in the directory of the app.

    Ahhhh! Why aren't you telling it what drive to save it on to!?
    Working as fast as I can on Fusion 3

  3. #13
    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: Forgot how to use arrays,,,:/

    No need if you just want to save it to the directory of the application.

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

  4. #14
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Forgot how to use arrays,,,:/

    Quote Originally Posted by nivram
    No need if you just want to save it to the directory of the application.

    Marv
    What!? That's like saving to the path "\Documents and Settings\All Users\" !!! It doesn't exist because you didn't say which drive to save it on! Like C: or E:
    Working as fast as I can on Fusion 3

  5. #15
    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: Forgot how to use arrays,,,:/

    LB, using apppath$ automatically saves the application to the application directory. If you would like to save it to another directory, yes you specify the drive and etc. No need to put extra code in if you do not need it. Test it.

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

  6. #16
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Forgot how to use arrays,,,:/

    Quote Originally Posted by Shawn
    Appdir$ + "arr.txt"
    That's not AppPath$, sorry you must have misunderstood.

    You can't save a file to a directory without knowing what drive to use.
    Working as fast as I can on Fusion 3

  7. #17
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Forgot how to use arrays,,,:/

    Quote Originally Posted by LB
    Quote Originally Posted by Shawn
    Appdir$ + "arr.txt"
    That's not AppPath$, sorry you must have misunderstood.

    You can't save a file to a directory without knowing what drive to use.
    I know it's not AppPath. What I'm saying is, I use Appdir$ and it works fine. I've done it several times.

    What Marvin posted is correct. Saving to the same directory as your application does not require AppPath. Appdir does it just fine. Appdir means just that, "Application Directory".

  8. #18
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Forgot how to use arrays,,,:/

    Yes but it doesn't include the drive, AppDir$ will resture something like "\Program Files\My Software\" but AppPath$ will return the same, but with the drive, like "C:\Program Files\My Software\" or "E:\Program Files\My Software\".

    You can save with that and it works fine? For me I either get an error, it doesn't save, or it just saves to the root directory of the drive it's on, like C:\ or E:\
    Working as fast as I can on Fusion 3

  9. #19
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Forgot how to use arrays,,,:/

    Quote Originally Posted by LB
    Yes but it doesn't include the drive, AppDir$ will resture something like "\Program Files\My Software\" but AppPath$ will return the same, but with the drive, like "C:\Program Files\My Software\" or "E:\Program Files\My Software\".

    You can save with that and it works fine? For me I either get an error, it doesn't save, or it just saves to the root directory of the drive it's on, like C:\ or E:\
    For me it's always saved in the same directory as the application. I never get an error.

    For portability purposes, I don't like to tie my files down to a full directory path.

    Take HTML for example. When embedding an image in a page, you don't have to type the entire URL like <img src="http://www.clickteam.com/afolder/anotherfolder/yetanotherfolder/image.jpg"> if the images and html file are in the same directory, you simply just type <img src="image.jpg">

    I'm not sayinng AppPath$ doesn't work, but I've never had a problem using AppDir$ by itself. An application loaded into memory knows how to read and write to it's own directory without hard coding the entire application path on the hard drive. Works in programming as well, not just MMF2.

  10. #20
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Forgot how to use arrays,,,:/

    Oh, well try teling that to the File object. :p
    Working as fast as I can on Fusion 3

Page 2 of 3 FirstFirst 1 2 3 LastLast

Similar Threads

  1. Forgot password in Groups.
    By Jase in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th August 2010, 08:15 AM
  2. Zoom in screen? forgot how to do it.....
    By ZayLong in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 10th March 2009, 09:11 PM
  3. 2 i forgot where i click to add a player
    By dyxeldoff in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 9th October 2008, 11:32 PM
  4. I forgot how to..
    By PrincessNinjato in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 13th February 2007, 06:13 PM
  5. almost forgot to report this bug
    By AtomX in forum Multimedia Fusion 2 - Technical Support
    Replies: 19
    Last Post: 4th July 2006, 10:20 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
  •