Various questions

yves COPPE yvescoppe at skynet.be
Tue Jan 29 07:54:01 EST 2002


>
>Of course you can use relative paths.
>
>Here's how to:
>
>Supposed you have your stacks etc in a big folder called "Dunno" ;-)
>
>You could create a subfolder in that folder and call it e.g. "soundz"
>(sic ! ;-)
>
>Now you have to tell MC/RR to set its working directory, which is
>the folder, where the engine will look into and will find all the nice
>things in there, like stacks, movies, subfolders etc...
>
>Now you should add these lines to the stack (inside folder "Dunno")
>where you want to use relative paths:
>
>on preopenstack ## so it's already set, when the stack starts...
>   get the effective filename of this stack
>    set the itemdel to "/"
>    delete last item of it
>    set the directory to it
>end preopenstack
>
>"the efective filename" returns the complete path to that stack with
>HD etc... -> "C:/windoze/my_folder/your_folder/our_stack.rev"
>
>Now we set the itemdelimiter to "/" (which is the default path delimiter in
>MC/RR), delete the last item of "the eff..." and what's left is the complete
>path to the folder "Dunno". ("C:/windoze/my_folder/your_folder")
>
>NOW you can script something like:
>
>on xxx
>   set the filename of player "playa" to "soundz/new.wav"
>end xxx
>
>Regards
>
>Klaus Major
><kmajor at metascape.org>
>MetaScape GmbH


What's the difference between setting the directory or setting the 
default stack ?
-- 



More information about the use-livecode mailing list