# Loaders and Paths

**URL:** <https://forum.kirupa.com/t/loaders-and-paths/275741>\
**Category:** flash\
**Created:** [November 18, 2008, 5:37am UTC](https://forum.kirupa.com/t/loaders-and-paths/275741 "2008-11-18T05:37:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![owl](https://avatars.discourse-cdn.com/v4/letter/o/dc4da7/32.png) [@owl](https://forum.kirupa.com/u/owl)\
**Post date:** [November 18, 2008, 5:37am UTC](https://forum.kirupa.com/t/loaders-and-paths/275741/1 "2008-11-18T05:37:14Z")

</div>

Hi,  
I am new to this forum, I joined because I was having a hard time with an assignment I’m doing.

Basically I have to use loaders to bring in 5 separate jpeg images, which I have no problem doing as long as the .swf file and the images are together. Ideally I would like to be able to have the .swf file in one folder and the images in their own folder. Is there a way to do this?

This is my code now:

var myLoader:Loader = new Loader;

myLoader.x = 5  
myLoader.y = 18

tibet1.addEventListener(MouseEvent.CLICK, loadJPG);  
tibet2.addEventListener(MouseEvent.CLICK, loadJPG);  
tibet3.addEventListener(MouseEvent.CLICK, loadJPG);  
tibet4.addEventListener(MouseEvent.CLICK, loadJPG);  
tibet5.addEventListener(MouseEvent.CLICK, loadJPG);

function loadJPG(event:MouseEvent):void {

```
var thingToLoad:URLRequest = new URLRequest(event.target.name + ".jpg");
myLoader.load(thingToLoad);
addChild(myLoader);

}

```

If this helps my path from the fla file is images/tibet\_
