diff --git a/CHANGELOG.md b/CHANGELOG.md index fcf463ba9..a56458aea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,7 @@ All notable changes to this project will be documented in this file. which ressembles Flash Pro UI. Easier moving objects, resizing, adding frames, adding objects to stage. Instance property editation. Undo / redo feature. WIP - -- Cache as bitmap background color support (rendering) +- Cache as bitmap background color support (rendering, image and FLA export) ### Fixed - [#2344] Export to FLA CS4 and below with more than 255 library items, diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java index b73d4d6d3..ad141b5f1 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/xfl/XFLConverter.java @@ -1316,6 +1316,9 @@ public class XFLConverter { if (!isVisible && flaVersion.ordinal() >= FLAVersion.CS5_5.ordinal()) { writer.writeAttribute("isVisible", false); } + if (backgroundColor != null) { + writer.writeAttribute("bits32", false); + } writer.writeStartElement("matrix"); convertMatrix(matrix, writer); writer.writeEndElement(); @@ -2510,6 +2513,9 @@ public class XFLConverter { } else { isVisible = true; } + if (po.getBackgroundColor() != null) { + backGroundColor = po.getBackgroundColor(); + } } else { metadata = po.getAmfData(); matrix = po.getMatrix(); @@ -2521,6 +2527,7 @@ public class XFLConverter { ratio = po.getRatio(); clipActions = po.getClipActions(); isVisible = po.isVisible(); + backGroundColor = po.getBackgroundColor(); } } } diff --git a/libsrc/ffdec_lib/testdata/graphics/graphics.swf b/libsrc/ffdec_lib/testdata/graphics/graphics.swf index 6aa77757b..8ec843f6d 100644 Binary files a/libsrc/ffdec_lib/testdata/graphics/graphics.swf and b/libsrc/ffdec_lib/testdata/graphics/graphics.swf differ diff --git a/libsrc/ffdec_lib/testdata/graphics/graphics/DOMDocument.xml b/libsrc/ffdec_lib/testdata/graphics/graphics/DOMDocument.xml index 38a85a1bf..a32101fcb 100644 --- a/libsrc/ffdec_lib/testdata/graphics/graphics/DOMDocument.xml +++ b/libsrc/ffdec_lib/testdata/graphics/graphics/DOMDocument.xml @@ -1,7 +1,7 @@ - + @@ -36,7 +36,7 @@ - + @@ -64,7 +64,7 @@ stop();]]> - + @@ -333,10 +333,10 @@ stop();]]> - + @@ -865,10 +865,10 @@ stop();]]> !3980 1990|2980 1990!2980 1990|2980 990!2980 990|3980 990!3980 990|3980 1990"/> - + @@ -1467,18 +1467,18 @@ stop();]]> - + - - + + @@ -2662,6 +2662,48 @@ stop();]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -4056,6 +4098,23 @@ stop();]]> + + + + + + + + + 067 CacheAsBitmap + BGColor + + + + + + + + diff --git a/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/ScaledRect.xml b/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/ScaledRect.xml index c6115f532..ed64c39a3 100644 --- a/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/ScaledRect.xml +++ b/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/ScaledRect.xml @@ -28,83 +28,81 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + diff --git a/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/Sprite1.xml b/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/Sprite1.xml index bfbd08dee..b8b5cd635 100644 --- a/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/Sprite1.xml +++ b/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/Sprite1.xml @@ -25,8 +25,8 @@ - + diff --git a/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/grid.xml b/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/grid.xml index 3ac90df2b..345298121 100644 --- a/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/grid.xml +++ b/libsrc/ffdec_lib/testdata/graphics/graphics/LIBRARY/grid.xml @@ -28,74 +28,98 @@ - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libsrc/ffdec_lib/testdata/graphics/graphics/META-INF/metadata.xml b/libsrc/ffdec_lib/testdata/graphics/graphics/META-INF/metadata.xml index d8136706a..51a465f5a 100644 --- a/libsrc/ffdec_lib/testdata/graphics/graphics/META-INF/metadata.xml +++ b/libsrc/ffdec_lib/testdata/graphics/graphics/META-INF/metadata.xml @@ -5,8 +5,8 @@ xmlns:xmp="http://ns.adobe.com/xap/1.0/"> Adobe Flash Professional CS6 - build 481 2021-03-14T08:29:20+01:00 - 2023-11-26T09:37:30-08:00 - 2023-11-26T09:37:30-08:00 + 2024-10-23T12:34:08-07:00 + 2024-10-23T12:34:08-07:00 @@ -15,7 +15,7 @@ - xmp.iid:08941A39768CEE118671C1302BB7E893 + xmp.iid:F8090D38FC8FEF119A09BEAA35197FE1 xmp.did:D6D3FE199784EB1187FEAE6972EC5115 xmp.did:D6D3FE199784EB1187FEAE6972EC5115 @@ -176,6 +176,12 @@ 2021-03-14T08:29:20+01:00 Adobe Flash Professional CS6 - build 481 + + created + xmp.iid:F8090D38FC8FEF119A09BEAA35197FE1 + 2021-03-14T08:29:20+01:00 + Adobe Flash Professional CS6 - build 481 + diff --git a/libsrc/ffdec_lib/testdata/graphics/graphics/bin/SymDepend.cache b/libsrc/ffdec_lib/testdata/graphics/graphics/bin/SymDepend.cache index 718d5922e..2f1b001e6 100644 Binary files a/libsrc/ffdec_lib/testdata/graphics/graphics/bin/SymDepend.cache and b/libsrc/ffdec_lib/testdata/graphics/graphics/bin/SymDepend.cache differ