diff --git a/src/com/jpexs/decompiler/flash/SWF.java b/src/com/jpexs/decompiler/flash/SWF.java index 461ed19a7..9682c1d2b 100644 --- a/src/com/jpexs/decompiler/flash/SWF.java +++ b/src/com/jpexs/decompiler/flash/SWF.java @@ -608,7 +608,8 @@ public final class SWF implements TreeItem, Timelined { ArrayList newAbcList = new ArrayList<>(); getABCTags(objs, newAbcList); - this.abcList = newAbcList; + isAS3 = !newAbcList.isEmpty(); + abcList = newAbcList; } private static void getABCTags(List list, List actionScripts) { diff --git a/src/com/jpexs/decompiler/flash/gui/MainPanel.java b/src/com/jpexs/decompiler/flash/gui/MainPanel.java index bd7e2e443..10b485dd4 100644 --- a/src/com/jpexs/decompiler/flash/gui/MainPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/MainPanel.java @@ -592,13 +592,10 @@ public final class MainPanel extends JPanel implements ActionListener, TreeSelec for (SWF swf : newSwfs) { - boolean hasAbc = !swf.abcList.isEmpty(); - swf.isAS3 = hasAbc; - tagTree.setModel(new TagTreeModel(mainFrame, swfs)); dumpTree.setModel(new DumpTreeModel(swfs)); - if (hasAbc) { + if (swf.isAS3) { if (abcPanel == null) { abcPanel = new ABCPanel(this); displayPanel.add(abcPanel, CARDACTIONSCRIPT3PANEL);