diff --git a/CHANGELOG.md b/CHANGELOG.md index 901e9d0f5..71b95405d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ All notable changes to this project will be documented in this file. - [#2052] Detection of switches based on notequal operator - [#2073] Recalculating frameCount field in SWF header and DefineSprite after deleting frame - Handling currently selected tags when using folder preview selection (Not working Replace button, etc.) +- FLA export - Sprites which do not end with ShowFrame tag ### Changed - [#2070] String values inside SWF to XML export are backslash escaped 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 32786308c..d7114898a 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 @@ -3079,6 +3079,7 @@ public class XFLConverter { Map depthToClipPlace = new HashMap<>(); Map clipFinishFrames = new HashMap<>(); + Tag lastTag = null; for (Tag t : timelineTags) { if (t instanceof ShowFrameTag) { f++; @@ -3103,7 +3104,13 @@ public class XFLConverter { depthToClipPlace.remove(re.getDepth()); } } + lastTag = t; } + + //Some sprites do not end with ShowFrame: + if (lastTag != null && !(lastTag instanceof ShowFrameTag)) { + f++; + } int frameCount = f;