diff --git a/src/com/jpexs/decompiler/flash/gui/Main.java b/src/com/jpexs/decompiler/flash/gui/Main.java index ba4877ffd..372ce0e82 100644 --- a/src/com/jpexs/decompiler/flash/gui/Main.java +++ b/src/com/jpexs/decompiler/flash/gui/Main.java @@ -875,14 +875,25 @@ public class Main { //ignore } } else { - File f = new File(new File(file).getParentFile(), url); - if (f.exists()) { + File swf = new File(new File(file).getParentFile(), url); + if (swf.exists()) { try { - return open(new FileInputStream(f), f.getAbsolutePath(), f.getName()); + return open(new FileInputStream(swf), swf.getAbsolutePath(), swf.getName()); } catch (Exception ex) { //ignore } } + // try .gfx if .swf failed + if (url.endsWith(".swf")) { + File gfx = new File(new File(file).getParentFile(), url.substring(0, url.length()-4)+".gfx"); + if (gfx.exists()) { + try { + return open(new FileInputStream(gfx), gfx.getAbsolutePath(), gfx.getName()); + } catch (Exception ex) { + //ignore + } + } + } } Reference ret = new Reference<>(null); View.execInEventDispatch(new Runnable() {