QT movie address in player(2)

Ken Norris pixelbird at interisland.net
Tue Apr 1 04:33:01 EST 2003


**********
> Date: Mon, 31 Mar 2003 15:26:19 -0600
> From: "Ronald D. Zellner" <zellner at neo.tamu.edu>
> Subject: Re: QT movie address in player(2)

>
> Another approach was to add this script to the card.  It seems to
> take care of the problem. Does this make sense?
> 
> on opencard
> put the filename of this stack into P
> --isolate & remove the file name from the path
> repeat with X = the number of characters in P down to 1
> if character X of P = "/" then
> put " " into character X of P
> exit repeat
> end if
> end repeat
> Delete the last word of P
> --substitute the movie name and set the player filename
> set the filename of Player "Player1" to P & "/MainMovie.mov"
> end opencard
----------
That looks like it will work, but you can eliminate a few lines and the loop
by doing basically the same thing except you set the itemDelimiter to "/"
and get the last item.

Ken N. 




More information about the use-livecode mailing list