User Tag List

Results 1 to 6 of 6

Thread: AppDirectory

  1. #1
    No Products Registered

    Join Date
    Oct 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    AppDirectory

    Whenever I open an mfa in my MMF2 it sets all ./'s to my directory so they no longer work on any other directories. How can I stop this? I have the latest build and everything.

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: AppDirectory

    The safest way is to use Apppath$ + "MyFile.txt".

  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: AppDirectory

    Ah, I think he means the edit-time properties though.

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: AppDirectory

    Whenever I open an mfa in my MMF2 it sets all ./'s to my directory so they no longer work on any other directories.
    Filenames in properties, as well as in action/condition/expression parameters selected with file selectors, are always relocated by MMF2 when you move your application and all the external files to another directory. (only for the files that are in the same directory as the .mfa file, or in a sub-directory)

    E.g. if your c:\test\app1.mfa contains an active picture object that loads c:\test\picture.jpg, if you move both files to c:\test2, load the .mfa file and look at the properties of the active picture object, you will see that the filename is c:\test2\picture.jpg

    This is the same for stand-alone applications : if you build your EXE/CCN file in the same directory as the MFA file, the filenames will be relocated when the application starts and will point to files in the directory of the stand-alone application.

  5. #5
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: AppDirectory

    That's quite handy Yves. I think that the files selected by the file selector and displayed in the Event Editor (and Global Events Editor) weren't relocated. Maybe this is an addition to the latest build?

    EDIT: Sorry I've edited my post, but not quickly enough!

  6. #6
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: AppDirectory

    Yes, only with filename parameters selected with file selectors. Note: at least for all the Clickteam extensions, but usually 3rd party extensions also support this feature.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •