When I making new SWF my game is freezing

Hi, I’m making game on haxeflixel, but I try to load external SWF-file from internet.

I’m doing this:

var url = "http://myfile.swf";
var loadURL:URLRequest = new URLRequest(url);
var loader:Loader = new Loader ();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(inpt:Dynamic){
        mySWFLib = new SWF (loader.contentLoaderInfo.bytes);
});

And when creating new SWF my game is freezing.
But after that, everything is ok.
What I’m doing wrong?

This is a native target? This is possible (above) on native platforms, but it is not fast (due to the process of decompressing/decoding the SWF). Do you need to load it externally in this way? Can you use SWFLite at compile-time instead?

WOW! Thanks for your answer!

Do you need to load it externally in this way?

Maybe no. I’m just need something like comfortable external library. And when I started, swf with movieclips look like pretty good.

So, I try to look at what SWFLife is.