# Preloader can't locate file

**URL:** <https://forum.kirupa.com/t/preloader-cant-locate-file/303639>\
**Category:** flash\
**Created:** [January 24, 2010, 1:24am UTC](https://forum.kirupa.com/t/preloader-cant-locate-file/303639 "2010-01-24T01:24:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stokastic](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@stokastic](https://forum.kirupa.com/u/stokastic)\
**Post date:** [January 24, 2010, 1:24am UTC](https://forum.kirupa.com/t/preloader-cant-locate-file/303639/1 "2010-01-24T01:24:14Z")

</div>

Hi,

I’m in the process of migrating my 1st flash game from my PC to a web site. I have a preloader that will load a couple of .swf files to start but it stops when requesting the 1st URL.

Here is my code:

> var l1:Loader = new Loader();  
> var l2:Loader = new Loader();  
> var completeTimer:Timer;  
> var percentSoFar:uint;

l1.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, loop1);  
l1.contentLoaderInfo.addEventListener(Event.COMPLETE, load2);  
l1.load(new URLRequest(“MyFile.swf”));

This is not the entire preloader file, just the part until it halts.

Is it possible that I need to publish with specific settings? After all, everything was working fine until it was copied on the server.

Thanks,

-Stokastic
