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@lists.runrev.com> 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         |     jac...@hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to