Cannot load SWFs larger than 32768 bytes
I have an ActionScript 3 project in which I'm using a Loader to load external SWFs. In Chrome, the Flash Player will not fire Event.COMPLETE if the size of the SWF is greater than 32768 bytes! Any idea why or how to work around this issue?
I tried to use ProgressEvent.PROGRESS and execute the logic when event.bytesLoaded == event.bytesTotal. This works, it does get there, but then loader.contentLoaderInfo.applicationDomain.getDefinition() can't find the class inside the SWF.
It seems that this problem only occurs if the event listener is added as a weak reference. Removing the weak reference solved the problem.