资源简介
这是一个java编写的swf文件播放器,并且包含所用编写的类库,你可以用类库的类编写属于自己的flash播放器,也可以使用已经编好的模版播放器。

代码片段和文件信息
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.filechooser.FileFilter;
import java.io.*;
// import the JFlashPlayer package
import com.jpackages.jflashplayer.*;
/**
* Example code demonstrating JFlashPlayer
*
* Copyright (c) 2001-2009
* Company: VersaEdge Software LLC
* Site: http://www.jpackages.com/jflashplayer
*/
public class Example extends Jframe implements FlashPanelListener {
// handle to a FlashPanel instance
FlashPanel flashPanel;
/**
* An example Java method that will be called from Flash Actionscript code
* using ExternalInterface.call. These methods must be public to be accessible from Flash.
*
* For this method to be callable from Flash you must use the
* FlashPanel.setFlashCallobject method as is done below in the creatFlashPanel method.
*/
public String[] testFunction(String text boolean b double d String[] array) {
// output some of the demo variables
System.out.println(“Flash has called testFunction“);
System.out.println(“ received text: “ + text);
System.out.println(“ received boolean: “ + b);
System.out.println(“ received double: “ + d);
for (int i=0; i < array.length; i++) {
System.out.println(“ received array[“ + i + “]: “ + array[i]);
}
SwingUtilities.invokeLater(new Runnable() {
public void run() {
String message = “Flash has executed ExternalInterface.call on Java testFunction method.“;
JOptionPane.showMessageDialog(null message
“ExternalInterface.call executed“ JOptionPane.PLAIN_MESSAGE);
}
});
return new String[] { “aloha“ }; // change aloha to stop to cause the Flash movie to stop on this method call
}
/**
* Called from Flash by ExternalInterface.call to indicate mouse over and out events on a Flash symbol.
*/
public void notifyFlashMouseEvent(String event) {
System.out.println(“Flash mouse event: “ + event);
}
/**
* This method is called from Flash to launch a web site.
*/
public void launchIE(String site) {
try {
System.out.println(“launching IE to “ + site);
Runtime.getRuntime().exec(“explorer “ + site);
} catch (Exception e) {
}
}
/**
* FlashPanelListener event method which receives FSCommand Flash events.
*
* You should use ExternalInterface.call instead of FSCommand
* with the latest Actionscript version. Older Actionscript versions
* will only have access to FSCommand.
*/
public void FSCommand(String command String arg) {
System.out.println(“FSCommand event received: “ + command + “ “ + arg);
if (command.equals(“javalink“)) {
launchIE(arg);
} else if (command.equals(“javaExecute“)) {
SwingUtilities.invokeLater(new Runnable() {
public void run() {
JOptionPane.showMessageDialog(null
“Flash FSCommand events can be received by Java“);
}
});
}
}
/**
* Create a FlashPanel instance and add it to the frame
*/
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 84992 2002-01-05 05:18 jflashpla
文件 102400 2002-01-05 05:18 jflashpla
文件 1476 2009-01-13 12:40 jflashpla
文件 1376 2009-01-13 12:40 jflashpla
文件 7544 2009-01-13 12:40 jflashpla
文件 5811 2009-01-13 12:40 jflashpla
文件 8652 2009-01-13 12:40 jflashpla
文件 8364 2009-01-13 12:40 jflashpla
文件 9405 2009-01-13 12:40 jflashpla
文件 8694 2009-01-13 12:40 jflashpla
文件 82669 2009-01-13 12:41 jflashpla
文件 9111 2009-01-13 12:40 jflashpla
文件 10441 2009-01-13 12:40 jflashpla
文件 10933 2009-01-13 12:40 jflashpla
文件 1905 2009-01-13 12:40 jflashpla
文件 7803 2009-01-13 12:40 jflashpla
文件 6853 2009-01-13 12:40 jflashpla
文件 7550 2009-01-13 12:40 jflashpla
文件 7751 2009-01-13 12:40 jflashpla
文件 10520 2009-01-13 12:40 jflashpla
文件 9536 2009-01-13 12:40 jflashpla
文件 33177 2009-01-13 12:40 jflashpla
文件 1337 2009-01-13 12:40 jflashpla
文件 6684 2009-01-13 12:40 jflashpla
文件 28 2009-01-13 12:40 jflashpla
文件 57 2007-04-17 15:26 jflashpla
文件 1420 2009-01-13 12:40 jflashpla
文件 60 2008-12-20 20:30 jflashpla
文件 732 2011-04-30 11:54 jflashpla
文件 514 2011-04-30 11:54 jflashpla
............此处省略53个文件信息
相关资源
- 微博系统(Java源码,servlet+jsp),适
- java串口通信全套完整代码-导入eclip
- jsonarray所必需的6个jar包.rar
- 三角网构TIN生成算法,Java语言实现
- java代码编写将excel数据导入到mysql数据
- Java写的cmm词法分析器源代码及javacc学
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- 推荐算法的JAVA实现
- 基于Java的酒店管理系统源码(毕业设
- java-图片识别 图片比较
- android毕业设计
- java23种设计模式+23个实例demo
- java Socket发送/接受报文
- JAVA828436
- java界面美化 提供多套皮肤直接使用
- 在线聊天系统(java代码)
- 基于Java的图书管理系统807185
- java中实现将页面数据导入Excel中
- java 企业销售管理系统
- java做的聊天系统(包括正规课程设计
- Java编写的qq聊天室
- 商店商品管理系统 JAVA写的 有界面
- JAVA开发聊天室程序
- 在linux系统下用java执行系统命令实例
- java期末考试试题两套(答案) 选择(
- JAVA3D编程示例(建模、交互)
- Java 文件加密传输
- java做的房产管理系统
- 基于jsp的bbs论坛 非常详细
评论
共有 条评论