用Java编写Flash应用

来源:互联网 发布:上海淘宝培训班多少钱 编辑:程序博客网 时间:2024/06/06 07:07

Flash4j 可以让你用 Java 语言来编写 Flash 应用,提供数以百种的 UI 控件。你可把它当成是 Adobe Flex 的 Java 语言封装。

示例代码:

Button button = new Button( "Click me" );
button.addEventHandler(MouseEvent.CLICK, new EventHandler() {
             @Override
             public void onEvent(Event event) {
                  Alert.show( "Hello, Flex" "Greetings" );
             }
});
// center the button
button.setCentered();

转自:http://www.oschina.net/p/flash4j?from=20121014
原创粉丝点击