From 95785ba2185f0bd8616c262a22467163d370ec6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Tue, 16 Aug 2016 20:47:29 +0200 Subject: [PATCH] Flex script replacer - disable strict mode --- .../jpexs/decompiler/flash/flexsdk/As3ScriptReplacer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/flexsdk/As3ScriptReplacer.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/flexsdk/As3ScriptReplacer.java index 06a1a54d9..7751f3cc9 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/flexsdk/As3ScriptReplacer.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/flexsdk/As3ScriptReplacer.java @@ -131,7 +131,9 @@ public class As3ScriptReplacer extends MxmlcRunner { removedPacks.add(sp); } } - + for (ScriptPack sp : removedPacks) { + System.out.println("Removing class " + sp.getClassPath()); + } //Export subclasses so they can be compiled by Flex, but ONLY STUBS. //No method code to avoid code compilation problems. //This compiled code won't be used at all in original SWF, @@ -152,7 +154,7 @@ public class As3ScriptReplacer extends MxmlcRunner { Helper.writeFile(scriptFileToCompile.getAbsolutePath(), txt.getBytes("UTF-8")); //Compile it (and subclasses stubs) - mxmlc("-include-inheritance-dependencies-only", "-warnings=false", "-library-path", swcFile.getAbsolutePath(), "-source-path", tempDir.getAbsolutePath(), "-output", compiledSwfFile.getAbsolutePath(), "-debug=true", scriptFileToCompile.getAbsolutePath()); + mxmlc("-strict=false", "-include-inheritance-dependencies-only", "-warnings=false", "-library-path", swcFile.getAbsolutePath(), "-source-path", tempDir.getAbsolutePath(), "-output", compiledSwfFile.getAbsolutePath(), "-debug=true", scriptFileToCompile.getAbsolutePath()); try (FileInputStream fis = new FileInputStream(compiledSwfFile)) { SWF newSWF = new SWF(fis, false, false);