This content has been marked as final. Show 2 replies
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
Word of Mouth Productions
"wgb14" <email@example.com> wrote in message
> Hi all,
> Here is another question for you!
> I want to read the properties of a file with BudAPI. The file is stored in
> 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
> 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")
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:
username = baReadIni("User_details","Name","error", "E:\PhD
Development work\My Director
--prefs.ini is the file that is stored in the preferences folder.
put username into member("name")