# Flex "URL or Path to launch" problem

**URL:** <https://forum.kirupa.com/t/flex-url-or-path-to-launch-problem/283419>\
**Category:** flash\
**Created:** [March 5, 2009, 9:20pm UTC](https://forum.kirupa.com/t/flex-url-or-path-to-launch-problem/283419 "2009-03-05T21:20:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![morgate](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@morgate](https://forum.kirupa.com/u/morgate)\
**Post date:** [March 5, 2009, 9:20pm UTC](https://forum.kirupa.com/t/flex-url-or-path-to-launch-problem/283419/1 "2009-03-05T21:20:24Z")

</div>

Hi all, I hope this is the right place to post this  
I am working on a flex project in AS3 (no mxml)… I unchecked the “Generate Html wrapper file” and when I compile for debug it works fine in my target deployment path (which is called WWW).

my problem is:  
if my document class is on the root of the sources folder, the generated SWF will be on the root of the Deployment folder ( **WWW/main.swf** ) … but if my document class is inside a package like **com.projectName.main.as** for example, the generated swf file will be:  
\*\*WWW/com/projectName/main.swf \*\*  
and if I uncheck the “use defaults” in the URL or Path to launch field in the project’s run/debug settings, I get an error message that says: _Launch failed, file not found: D:/project/WWW/main.swf_

it only worked if I check Use defaults which will go back to generating the subfolders that I don’t need…

any idea how I can fix that issue without having to manually copy the file from the unnecessay subfolders to put it back on the root of the output folder?

thanks a million for any help
