I have exactly the same problem. I create simple swf (only with red square) and when I’ve tried to load it with:
AssetLibrary.loadFromFile
I got same error.
Yes, but I don’t want to embed swf file. I want to load external (because I change files from time to time) that is why I need AssetLibrary.loadFromFile
Now this is where the good old JavaScript creates a problem. The language barrier. Even if you embed the swf file with embed tag, it will not get embedded. The engine will load it from the net. So, there is no need to be worried. There is no actual embedding involved because there is actually no method of embedding in html5, rather than string. Once you embed the swf file you can change images inside the zip and redeploy it manually. But, I don’t think you want to do that because its risky. You should set up your build pipeline - system if you want to change swf assets rapidly.
Well, this solution is like option how it works but still I have to add definition in my project.xml. <library path="assets/graphics/Motivator1.swf" id="swf-library"/>.
Can it even works if I had some XML game settings where I can put optional file path?
OR, let me be explicit: I don’t want any <library path=""> definition,