# Loader contentPath: how can I use a relative path?

**URL:** <https://forum.kirupa.com/t/loader-contentpath-how-can-i-use-a-relative-path/177224>\
**Category:** flash\
**Created:** [January 31, 2006, 5:39am UTC](https://forum.kirupa.com/t/loader-contentpath-how-can-i-use-a-relative-path/177224 "2006-01-31T05:39:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ohbeewan](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ohbeewan/32/1745_2.png) [@ohbeewan](https://forum.kirupa.com/u/ohbeewan)\
**Post date:** [January 31, 2006, 5:39am UTC](https://forum.kirupa.com/t/loader-contentpath-how-can-i-use-a-relative-path/177224/1 "2006-01-31T05:39:08Z")

</div>

Hey, I’m using a loader to dynamically load images, but I’m having problems with the syntax for the contentPath. Sometimes this works locally:

“[file:///images/hd\_services.jpg](file:///images/hd\_services.jpg)”

but sometimes it can’t locate the file, so I use the full path, but now that I need to have this thing on the live server, I can’t figure out the correct syntax to use a relative file path. What gives? Any ideas?

Thanks!
