# Path problems

**URL:** <https://forum.kirupa.com/t/path-problems/233584>\
**Category:** Uncategorized\
**Created:** [July 25, 2007, 6:39am UTC](https://forum.kirupa.com/t/path-problems/233584 "2007-07-25T06:39:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garaiburu](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@garaiburu](https://forum.kirupa.com/u/garaiburu)\
**Post date:** [July 25, 2007, 6:39am UTC](https://forum.kirupa.com/t/path-problems/233584/1 "2007-07-25T06:39:17Z")

</div>

Hi

I’m new to actionscript 3 (as will become obvious!) and am a little confused. Here’s why: I’m making a little gallery and it works fine if I put all the images in the same directory as the .swf file. If however I move them to a new folder (called ‘images’) in the same directory and change the path within the script accordingly flash can’t find the images anymore. So I figure there must be something I’m doing wrong in defining the path. Here’s what this bit of the script looks like

panel\_mc.P1.addEventListener(MouseEvent.CLICK,image1);  
function image1(event:MouseEvent):void {  
[COLOR=Yellow][COLOR=Red]var request:URLRequest = new URLRequest("\images\angry nell.jpg")[/COLOR];[/COLOR]  
myloader.load(request);  
addChild(myloader);  
myloader.scaleX = .3;  
myloader.scaleY = .3;  
myloader.x=290;  
myloader.y=35;  
}

I’ve tried defining the full path to the images on my drive, but it doesn’t make any difference.  
As I say if I just put the images in the same directory so that the URLRequest bit reads,

```
[COLOR=Red]var request:URLRequest = new URLRequest("angry nell.jpg");

```

[COLOR=Black]  
it all works fine.  
[/COLOR][/COLOR]  
Any help on this would be great.

cheers

John
