Hi Terry

If the stack is on the CD along with the AVI then you should be able to use
relative file paths without any problems. Note you need to use UNIX standard
delimiter "/" in your path name in MC instead of platform specific
characters like the DOS "\" you used in your example. Also if your stack is
at the root of the CD and DITBOX is a directory from the root then
"DITBOX/Splashscreen.avi" would be the correct relative path.

One problem with relative paths is that it always goes from MC's current
working directory. This will change every time you open a file or set the
directory in a script. The directory is set at startup to be the location of
the engine (or the stack that loaded the engine). With this in mind the
easyest thing to do is to put the directory into a custom prperty at startUp
then use that property like this:

put the directory into tSaveDirectory
set the directory to the cDirectory of this stack
do whatever
set the directory to tSaveDirectory


Regards

Monte
>
> >I'm having problems playing a AVI in my stack...
> >
> >The AVI movie only works with the full directory as a path.
> >
> >Example:
> >
> >C:\DITBOX\Splashscreen.avi  <--This works
> >\DITBOX\Splashscreen.avi  <--This dosen't
> >
> >However I need a relative path because this stack will be on a cd with a
> >changing drive letter.  I've heard some talk of use of the externals
> >collection to find the drive letter but so far I have been unsuccessful.
> >
> Any Ideas?
>
>
> How about using 'there is a file <filePath>' within a repeat loop on
> startup to locate a designated file and the drive letter associated
> with it and then construct your filepaths from there (I'm not really
> a PC person and not yet familiar with the vagaries of MC or MetaTalk
> so don't be surprised if this doesn't work).
>
> put "abcdefghijklmnopqrstuvwxyz" into PotentialDrives
> repeat with i = 1 to 26
>       if there is a file (char i of tPotentialDrives & ":\" &
> <filePath>) then
>             return (char i of PotentialDrives) -- use this to build
> your filePaths
>            exit repeat
>       end if
> end repeat
>
> Cheers,
>
> Terry...
> --
> __________________________________________________________________
> _________
> Dr Terry Judd
> Multimedia Developer
>
> Biomedical Multimedia Unit
> Faculty of Medicine, Dentistry & Health Sciences
> The University of Melbourne
> Email: [EMAIL PROTECTED]
> Phone: 03 9344 0187
> Fax: 03 9344 4998
> __________________________________________________________________
> _________
>
> Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to