Naive Player Questions

J. Landman Gay jacque at
Tue Dec 5 12:32:31 EST 2017

Specialfolderpath("resources") is especially convenient in another way. In 
a standalone it points to the location of the files that were added to the 
Copy Files pane of the standalone settings. But in the IDE it points to the 
folder containing the current mainstack. If you organize your files on disk 
inside the folder containing the mainstack, you don't need to branch the 
code to provide a full path during development. SpecialFolderPath will work 
the same way in either environment.

On December 5, 2017 7:19:14 AM panagiotis merakos via use-livecode 
<use-livecode at> wrote:

> Include the .mp3 file (say "myFile.mp3") in the "Copy Files" section. This
> will be accessible from the **standalone** using the
> <specialFolderPath("resources")> function.
> * - starting the player*
> on mouseUp
>    local tFilename
>    put specialfolderpath("resources") & slash & "myFile.mp3" into tFilename
>   // NOTE: In the IDE you'll need the full path to your "myFile.mp3"
>    set the filename of player 1 to tFilename
>    start player 1
> end mouseUp

Jacqueline Landman Gay         |     jacque at
HyperActive Software           |

More information about the Use-livecode mailing list