How to pack swf library with project file?

Hello everyone!

I’m loading assets from separate swf file, it works fine and I have the following in my project.xml:

<library path="assets/img.swf" preload="true" generate="true" />
<assets path="assets/img.swf" rename="img" />

The only problem, it create a separate file “lib\img\img.swf”, so I end up with 2 .swf files (Flash target), while I need only 1, with all the assets packed in it.
Is there a way to achieve that?

Thank you!

The same problem for Android target.

This line extracts all the assets to lib/img folder inside .apk file:

<library path="assets/img.swf" preload="true" generate="true" />

And this simply adds .swf file to assets, but project doesn’t use it:

<assets path="assets/img.swf" rename="img" />

My questions is the same, how can I make it the way it worked in legacy mode?
I need to add .swf library, pack it into the project .swf or .apk and use it.

Yet another problem under Android (all natives?), transparency stops working with .png assets packed into .swf.
I’m packing .png using JPEG Compression, so it creates two files 1.jpg and a mask 1a.jpg.
But apparently mask is not working properly, so all my graphics comes in black squares.

Using latest SWF and OpenFL libraries.

I believe that issue is fixed in development builds, as for having a separate SWF, I think that embedding might be disabled on SWF libraries at the moment

Are there any way to enable it? :slight_smile: It worked as expected in Legacy mode. :frowning: