From 3a71ad6ec979846d531b8a1cf9abaf64c873cac4 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sun, 26 Apr 2015 12:59:54 +0200 Subject: [PATCH] small fixes --- src/com/jpexs/decompiler/flash/gui/PreviewPanel.java | 6 +++--- .../jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java | 4 +--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java b/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java index 5af40bfde..36e009b8b 100644 --- a/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/PreviewPanel.java @@ -942,7 +942,7 @@ public class PreviewPanel extends JSplitPane implements ActionListener { doa = new DoActionTag(swf, null); actions = ASMParser.parse(0, false, - "ActionConstantPool \"_root\" \"my_sound\" \"Sound\" \"my_define_sound\" \"attachSound\"\n" + "ConstantPool \"_root\" \"my_sound\" \"Sound\" \"my_define_sound\" \"attachSound\"\n" + "Push \"_root\"\n" + "GetVariable\n" + "Push \"my_sound\" 0.0 \"Sound\"\n" @@ -961,7 +961,7 @@ public class PreviewPanel extends JSplitPane implements ActionListener { new ShowFrameTag(swf).writeTag(sos2); actions = ASMParser.parse(0, false, - "ActionConstantPool \"_root\" \"my_sound\" \"Sound\" \"my_define_sound\" \"attachSound\" \"start\"\n" + "ConstantPool \"_root\" \"my_sound\" \"Sound\" \"my_define_sound\" \"attachSound\" \"start\"\n" + "StopSounds\n" + "Push \"_root\"\n" + "GetVariable\n" @@ -988,7 +988,7 @@ public class PreviewPanel extends JSplitPane implements ActionListener { new ShowFrameTag(swf).writeTag(sos2); actions = ASMParser.parse(0, false, - "ActionConstantPool \"_root\" \"my_sound\" \"Sound\" \"my_define_sound\" \"attachSound\" \"onSoundComplete\" \"start\" \"execParam\"\n" + "ConstantPool \"_root\" \"my_sound\" \"Sound\" \"my_define_sound\" \"attachSound\" \"onSoundComplete\" \"start\" \"execParam\"\n" + "StopSounds\n" + "Push \"_root\"\n" + "GetVariable\n" diff --git a/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java b/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java index ad46f14de..811246699 100644 --- a/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java @@ -186,9 +186,6 @@ public final class FlashPlayerPanel extends Panel implements Closeable, MediaDis try { ShockwaveFlash flash1 = flash; - if (flash1 == null) { - return; - } boolean changed = false; @@ -208,6 +205,7 @@ public final class FlashPlayerPanel extends Panel implements Closeable, MediaDis } } catch (Exception ex) { // ignore + cancel(); } } }, 100, 100);