diff --git a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java index 3447b7c43..b6e6979a5 100644 --- a/src/com/jpexs/decompiler/flash/gui/ImagePanel.java +++ b/src/com/jpexs/decompiler/flash/gui/ImagePanel.java @@ -750,6 +750,7 @@ public final class ImagePanel extends JPanel implements ActionListener, MediaDis int msPerFrame = frameRate == 0 ? 1000 : 1000 / frameRate; final int cnt = counter; + shouldDraw.set(true); TimerTask task = new TimerTask() { public int counter = cnt; private final AtomicBoolean first = shouldDraw; diff --git a/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java b/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java index cd0dab7e9..c0baefd7f 100644 --- a/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java +++ b/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java @@ -138,11 +138,13 @@ public class FlashPlayerPanel extends Panel implements Closeable, MediaDisplay { if (!Platform.isWindows()) { throw new FlashUnsupportedException(); } + try { flash = ActiveX.createObject(ShockwaveFlash.class, this); } catch (ActiveXException ex) { throw new FlashUnsupportedException(); } + flash.setAllowScriptAccess("always"); flash.setAllowNetworking("all"); flash.addFlashCallListener(new ActiveXEventListener() { diff --git a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java index 1344095d9..b8981b79d 100644 --- a/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java +++ b/src/com/jpexs/decompiler/flash/gui/tagtree/TagTree.java @@ -223,6 +223,7 @@ public class TagTree extends JTree { setHashColor(Color.gray); } }; + setUI(treeUI); }