Loader contentPath: how can I use a relative path?

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!