From 988b2c73cfc048021d764836f3973b8d98b12c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Sun, 5 Nov 2023 11:53:34 +0100 Subject: [PATCH] Fixed FLA export - allow to rename target file instead of same name as swf file --- CHANGELOG.md | 1 + .../src/com/jpexs/decompiler/flash/xfl/XFLConverter.java | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9ac2626f..17d96e852 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1589,6 +1589,7 @@ Major version of SWF to XML export changed to 2. - [#1265] Error during export - [#1268] Font export - Using second glyph when two glyphs for one character found - [#1268] GFX compacted font - fixed advance values on export +- FLA export - allow to rename target file instead of same name as swf file ## [8.0.1] - 2016-02-20 ### Changed 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 896393dce..4a17bfb55 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 @@ -4516,9 +4516,7 @@ public class XFLConverter { throw new IllegalArgumentException("FLA version " + flaVersion + " does not support AS1/2"); } File flaFile = new File(outfile); //c:/mydir/myfile.fla - String baseName = swfFileName; - File f = new File(baseName); //myfile.swf - baseName = f.getName(); + String baseName = flaFile.getName(); if (baseName.contains(".")) { baseName = baseName.substring(0, baseName.lastIndexOf('.')); //myfile }