2 Replies Latest reply on Jun 6, 2007 12:06 AM by Newsgroup_User

    search paths

    wgb14 Level 1
      Hi all,

      Here is another question for you!

      I want to read the properties of a file with BudAPI. The file is stored in a different folder than my movie. ALthough it should work, it doesn''t. All I am getting in my names field is the text error. Any ideas what is going on?

      on startmovie
      _player.searchPathList = ["E:\PhD Development work\My Director Works\Main_Experiment\English_Present\Preferences\"]

      username=baReadIni("User_details","Name","error", "prefs.ini") ---prefs.ini is the file that is stored in the preferences folder.

      put username into member("name")

      end




        • 1. Re: search paths
          Level 7
          I don't think BuddyAPI uses the searchPaths as Director would. You'll hae
          to hard code the path or assemble a path relative to your movie or
          projector.

          --
          Craig Wollman
          Lingo Specialist
          Word of Mouth Productions
          212-928-9581

          www.wordofmouthpros.com
          "wgb14" <webforumsuser@macromedia.com> wrote in message
          news:f45i28$qol$1@forums.macromedia.com...
          > Hi all,
          >
          > Here is another question for you!
          >
          > I want to read the properties of a file with BudAPI. The file is stored in
          > a
          > different folder than my movie. ALthough it should work, it doesn''t. All
          > I am
          > getting in my names field is the text error. Any ideas what is going on?
          >
          > on startmovie
          > _player.searchPathList = ["E:\PhD Development work\My Director
          > Works\Main_Experiment\English_Present\Preferences\"]
          >
          > username=baReadIni("User_details","Name","error", "prefs.ini")
          > ---prefs.ini is the file that is stored in the preferences folder.
          >
          > put username into member("name")
          >
          > end
          >
          >
          >
          >
          >
          >


          • 2. Re: search paths
            Level 7
            The searchPaths is what /Director/ uses to resolve paths in the case of
            incomplete filenames/missing assets. You should never rely on an xtra to
            use it and should *always* supply full paths to files you are accessing:
            --
            on startmovie
            username = baReadIni("User_details","Name","error", "E:\PhD
            Development work\My Director
            Works\Main_Experiment\English_Present\Preferences\prefs.ini")
            --prefs.ini is the file that is stored in the preferences folder.
            put username into member("name")
            end