# Strange problem with loader

**URL:** <https://forum.kirupa.com/t/strange-problem-with-loader/304174>\
**Category:** flash\
**Created:** [February 2, 2010, 7:53pm UTC](https://forum.kirupa.com/t/strange-problem-with-loader/304174 "2010-02-02T19:53:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![EEpEr](https://avatars.discourse-cdn.com/v4/letter/e/58f4c7/32.png) [@EEpEr](https://forum.kirupa.com/u/EEpEr)\
**Post date:** [February 2, 2010, 7:53pm UTC](https://forum.kirupa.com/t/strange-problem-with-loader/304174/1 "2010-02-02T19:53:00Z")

</div>

Hi, all!  
I’m working with Loader class in as3 and there comes some really strange problem. I have two swf files, one loading the other.  
In the first one, I have codes like this:

var loader:Loader=new Loader();  
var context:LoaderContext=new LoaderContext();  
context.applicationDomain=ApplicationDomain.curren tDomain;  
var req:URLRequest=new URLRequest(“Untitled-1.swf”);  
loader.load(req);  
loader.contentLoaderInfo.addEventListener([Event.CO](http://Event.CO) MPLETE,onCPL);

function onCPL(e):void{  
trace(“finish”);  
addChild(e.currentTarget.content);

}

and the second one, with the name “Untitled-1.swf”, doesn’t seem to work in the first one. I find out that as long as there are ANY codes in the second swf file, the first one will repeat tracing “finish” endlessly.

I’m using Flash CS4
