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();
本文介绍如何使用Flash4j库在Java中创建Flash应用,提供了按钮交互示例,并展示了如何使用按钮事件触发Alert对话框。
103

被折叠的 条评论
为什么被折叠?



