Diambil dari : Java Flash Player API - JFlashPlayer
Cara menmpilkan Flash pada java
Only a few lines of code are needed to add JFlashPlayer to your Java programs:
FlashPanel.setRequiredFlashVersion("9"); FlashPanel flashPanel = new FlashPanel(new File("Movie.swf"));
String val = (String) flashPanel.callFlashFunction("sayHello", new Object[] { "A string argument" });
var methodName:String = "sayHello"; var method:Function = actualFunction; ExternalInterface.addCallback(methodName, method); function actualFunction(examplestring:String):String { return "Hello from Flash"; }
var response:String = ExternalInterface.call("sayHi", "hi");
public String sayHi(String text) { return "Aloha"; }
No comments:
Post a Comment