Entering file paths for external media files

Help for using specific functions

Entering file paths for external media files

Postby Clifton » Thu Jul 10, 2014 8:38 pm

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.
Clifton
Site Admin
 
Posts: 732
Joined: Tue Jan 14, 2014 1:04 am

Return to Function Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron