Setting Paths to Media in Standalone
Jim Ault
JimAultWins at yahoo.com
Fri Nov 23 17:56:01 EST 2007
try
effective filename
and perhaps add:
answer "The file path I am using as SA is " & cr & tPath
--to see what is happening and ---------
get tPath &"/" & "testFile.txt"
put "test write" into url ("file:/"& it)
if there is a file it then
answer "Successfully created a file" & cr & it
else
answer "Could NOT create a file" & cr & it
end if
--------------
Could be a permissions issue.
Jim Ault
Las Vegas
On 11/23/07 2:17 PM, "Sivakatirswami" <katir at hindu.org> wrote:
> 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
>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list