Issue #722 Go to next/previous frame

Fixed printing some debug info
This commit is contained in:
Jindra Petřík
2014-11-23 11:36:07 +01:00
parent 1a2ebed898
commit 4c78517715
8 changed files with 151 additions and 21 deletions
@@ -137,17 +137,7 @@ public class FlashPlayerPanel extends Panel implements Closeable, MediaDisplay {
}
}
}
});
flash.addFSCommandListener(new ActiveXEventListener() {
@Override
public void onEvent(ActiveXEvent axe) {
System.out.println("Event:" + axe.name);
for (String k : axe.args.keySet()) {
System.out.println(k + "=" + axe.args.get(k));
}
}
});
});
}
public synchronized void stopSWF() {
@@ -203,12 +193,18 @@ public class FlashPlayerPanel extends Panel implements Closeable, MediaDisplay {
}
@Override
public boolean isPlaying() {
public boolean isPlaying() {
return flash.IsPlaying();
}
@Override
public void gotoFrame(int frame) {
if(frame<0){
return;
}
if(frame>=getTotalFrames()){
return;
}
flash.GotoFrame(frame);
}