diff --git a/trunk/lib/FlashPlayer.exe b/trunk/lib/FlashPlayer.exe index 544b31bee..6d3df290b 100644 Binary files a/trunk/lib/FlashPlayer.exe and b/trunk/lib/FlashPlayer.exe differ diff --git a/trunk/libsrc/FlashPlayer/uMain.dfm b/trunk/libsrc/FlashPlayer/uMain.dfm index e73b4033a..c6d700215 100644 --- a/trunk/libsrc/FlashPlayer/uMain.dfm +++ b/trunk/libsrc/FlashPlayer/uMain.dfm @@ -1,6 +1,6 @@ object frmMain: TfrmMain - Left = 359 - Top = 168 + Left = 300 + Top = 617 Width = 1381 Height = 811 Caption = 'FFDec Flash Player' diff --git a/trunk/libsrc/FlashPlayer/uMain.pas b/trunk/libsrc/FlashPlayer/uMain.pas index 955fb9f6c..e873eebe5 100644 --- a/trunk/libsrc/FlashPlayer/uMain.pas +++ b/trunk/libsrc/FlashPlayer/uMain.pas @@ -74,10 +74,13 @@ end; procedure TPipeThread.displaySWF(); begin windows.SetParent(frmMain.Handle,target); - flaPreview.Stop; - flaPreview.Movie := ''; - flaPreview.Free; - flaPreview := nil; + if Assigned(flaPreview) then + begin + flaPreview.Stop; + flaPreview.Movie := ''; + flaPreview.Free; + flaPreview := nil; + end; flaPreview := TMySWF.Create(frmMain); flaPreview.Left:=0; flaPreview.Top:=0; @@ -86,7 +89,7 @@ begin frmMain.Caption:='set movie:'+flashFile; flaPreview.Parent := frmMain; flaPreview.Movie:=flashFile; - + flaPreview.SetFocus; end; procedure TPipeThread.setBGColor(); diff --git a/trunk/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java b/trunk/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java index 21f5e11c0..7fb9f846a 100644 --- a/trunk/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java +++ b/trunk/src/com/jpexs/decompiler/flash/gui/player/FlashPlayerPanel.java @@ -268,22 +268,24 @@ public class FlashPlayerPanel extends Panel implements FlashDisplay { this.frameRate = frameRate; if (!executed) { execute(); + /* + //How about commenting this out? Will it work? Let's try... try { Thread.sleep(1000); } catch (InterruptedException ex) { Logger.getLogger(FlashPlayerPanel.class.getName()).log(Level.SEVERE, null, ex); - } + }*/ } if (bgColor != null) { setBackground(bgColor); } + resize(); if (pipe != null) { IntByReference ibr = new IntByReference(); Kernel32.INSTANCE.WriteFile(pipe, new byte[]{CMD_PLAY}, 1, ibr, null); Kernel32.INSTANCE.WriteFile(pipe, new byte[]{(byte) flash.getBytes().length}, 1, ibr, null); Kernel32.INSTANCE.WriteFile(pipe, flash.getBytes(), flash.getBytes().length, ibr, null); - } - resize(); + } stopped = false; specialPlaying = false; specialPosition = 0;