# AS3 problem - URL issue - PLEASE HELP

**URL:** <https://forum.kirupa.com/t/as3-problem-url-issue-please-help/293070>\
**Category:** flash\
**Created:** [July 22, 2009, 8:26pm UTC](https://forum.kirupa.com/t/as3-problem-url-issue-please-help/293070 "2009-07-22T20:26:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grantnichols25](https://avatars.discourse-cdn.com/v4/letter/g/76d3ee/32.png) [@grantnichols25](https://forum.kirupa.com/u/grantnichols25)\
**Post date:** [July 22, 2009, 8:26pm UTC](https://forum.kirupa.com/t/as3-problem-url-issue-please-help/293070/1 "2009-07-22T20:26:51Z")

</div>

Hi,

I’m new to AS3 and have an issue, i’m sure you guys can probably spot the issue straight away but i’m still learning ;( !

Basically I have a 2 swf files. Within the main swf i have a button that I want to call in a second swf when it is clicked. The code I have for this looks as below…

Btn\_interiors.addEventListener(MouseEvent.CLICK,lo adGallery);

function loadGallery(event:MouseEvent):void{  
var l = new Loader(); addChild(l); l.load(new URLRequest(“portfolio\_interiors.swf”));  
}

The problem I am having is that when I enter the code and “Check Syntax” no errors appear, however when I preview the published swf and click the button, i get the following message…

Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

To me this would seem to say that the swf I am trying to call in is not in the appropriate folder, but both of the files are in the same folder. Its one of these problems where the longer I look at it the more annoyed I get so any help would be greatly appreciated!

Thanks  
Grant
