Using the DJNativeSwing JFlashPlayer
, I need to intercept in Java a simple event generated by flash / actionscript.
Adding the Java listener seems obvious:
JFLashPlayer flashPlayer = new JFlashPlayer();
flashPlayer.addFlashPlayerListener(this);
(...)
@Override
public void commandReceived(FlashPlayerCommandEvent e) {
System.out.println("Received flash command:"+e.getCommand());
}
But I couldn't find any documentation on how to generate a flash / actionscript event that would be catched by the listener.
Any idea / hint would be more than welcome ! Thx, Thomas