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?

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

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