Page 1 of 1

Entering file paths for external media files

PostPosted: Thu Jul 10, 2014 8:38 pm
by Clifton
Whenever referencing external media in your PowerPac function parameters, please remember that path separators MUST use a forward slash "/" and not the traditional Window style backslash.
  • To reference a file named bg_image.jpg in the media folder of your export:
    "../media/bg_image.jpg"
  • To reference an audio file named procedure.mp3 in a folder named audio which was flagged for inclusion in your export using the PowerPac DHTML Export Tree Manager:
    "../audio/procedure.mp3"
If your external resources do not play or load, it is often because the path separator is incorrect or there is a typo in the file path. It is important to realize that on web servers, case-sensitivity is important. It is also critical with JavaScript functions too.