I have a file that loads an external swf. I made some updates to the both the master file and external swf. It worked perfect before the updates, but I now get this error when I'm in the master file and hit the button to load the external file. It does not make any errors when exporting and all other code still works even though the swf never loads. I've searched for a couple of days trying to fix, but nothing seams to help.
Here is my code:
I have spelled the name of the external swf correctly and it does show the correct linkage to the file. Somewhere said to make a timeout function, but I don't know how to accomplish this. thanks for any help.Code:import flash.net.URLRequest; import flash.events.Event; var myLoad:Loader = new Loader(); var request:URLRequest = new URLRequest("assets/foodGallery.swf"); con.addChild(myLoad); myLoad.load(request); myLoad.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); function ioErrorHandler(e:IOErrorEvent):void{ trace(e.text); }


Reply With Quote