‘Load Never Completed ‘ Is it really this difficult to load an image or a swf??
I’m trying to load a swf that’s on a remote server.
Common sense, and some Adobe documentation, says that it should be done in the same way as loading from a swf stored locally:
var request:URLRequest = new URLRequest("http://www.[yourdomain].com/externalSwf.swf");
var loader:Loader = new Loader();
loader.load(request);
addChild(loader);
I’m testing this with an AIR v22 project running straight from FlashCS5.5. No problem with local loads.
I guess uncommon sense is needed because this results in: Error #2036: Load Never Completed. Same problem when trying to load an image this way, although I guess that URLLoader and a ByteArray might take care of that. But I really need to load swfs. When I listen for loader.contentLoaderInfo.bytesTotal I get just a fraction of the real total.
I’m guessing that somehow this may involve application domains or security domains but I’ve no idea how to use them. I’ve seen many questions about about this asked here but haven’t found a working solution.
How DO you load a swf from a server into an Adobe AIR project?
