Movie problems in LiveCode

stgoldberg at aol.com stgoldberg at aol.com
Mon Mar 30 08:00:47 EDT 2015


I do not know why we’re getting such different results. On Mac version 10.9.5, using LC 7.0.3, if I write the following script in the openCard handler:

on openCard
set the filename of player 1 to “media/mymovie.mov”
answer the filename of player 1
end openCard

then, while the movie will show in the player, I get the absolute path as an answer to the filename, rather than the relative path. This is confirmed by opening up the movie player property inspector and finding the absolute path in the fileName field (in my case, /Users/stephengoldberg/Desktop/Script words/Media/myMovie.mov)

Stephen Goldberg
stgoldberg at aol.com
www.medmaster.net

>on Mar 2015 13:07:23 
>jacque at hyperactivesw.com wrote:
>Or you could just include a line of script that sets the filename of the
>movie in a preOpenCard handler. That's what I usually do and why I've 
>never noticed any problems.

-- 
>Jacqueline Landman Gay         |    
>jacque at hyperactivesw.com
>HyperActive Software           |    
>http://www.hyperactivesw.com


>on Mar 2015 11:51
>stgoldberg at aol.com wrote:

>LC versions 6 and above, however, will not allow
>relative paths, when creating with Mac. E.g. consider this hierarchy in a Mac
>stack that you want to convert to a standalone for distribution:
>
>FOLDER
>MyMainstack.rev
    >MEDIA
        >MyMovie.mov
>
>If you want to refer to the
>movie in the LC Quicktime player, with the idea of creating a standalone for
>distribution to other platforms, you would want to change the movie player?s
>absolute path to a relative path:
>
>Media/MyMovie.mov 
>
>However LC versions
>on Mac above LC 5 will not allow this.  There, if you open the LC movie player
>and change the absolute path in the LC movie player to the relative path in the
>filename field, then close the Property Inspector and immediately open it up
>again, you will find that LC has reverted to the absolute path!  





More information about the use-livecode mailing list