Setting Paths to Media in Standalone

Sivakatirswami katir at hindu.org
Fri Nov 23 17:17:44 EST 2007


It's the old "can you find media files relative to me" issue...

I have a splash screen with a small movie to be run on load.

splash-stack-is-here.rev/
   media/ # a folder
        movie1.mov
       movie2.mov

OK, My preopenstack handler says:

on preopenstack
  set the loc of this stack to the screenloc
  put the filename of this stack into tPath
  set the itemdel to "/"
  put "media/" into item -1 of tPath
  set the filename of player 2 to url (tPath & "tandava take 3.mov")
  set the filename of player 1 to url (tPath & 
"aadheenam_2007-02-06_sm-vision-puja.mov")
end preopenstack

This works just fine in the IDE, but when I turn the stack into a 
standalone it does not work.

Any light?

Sivakatirswami





More information about the use-livecode mailing list