急急急急,急需大家帮助,望好心人帮我一下吧
import java.awt.*;import java.awt.event.*;
import javax.swing.*;
import com.macromedia.flash.*;
import java.io.*;
public class Flash_Test extends JFrame {
JPanel jPanel1 = new JPanel();
JButton jButton1 = new JButton();
public Flash_Test() {
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
protected void processWindowEvent(WindowEvent e) {
super.processWindowEvent(e);
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
System.exit(0);
}
}
public static void main(String[] args) {
Flash_Test flash_Test = new Flash_Test();
flash_Test.setSize(200,300);
flash_Test.show() ;
}
private void jbInit() throws Exception {
jButton1.setText( "jButton1 ");
this.getContentPane().add(jPanel1, BorderLayout.CENTER);
jPanel1.add(jButton1, null);
FlashApi flashPlayer = new FlashApi(new Flash());
flashPlayer.SetComponent(jPanel1);
flashPlayer.SetZoomRect(0,0,100,40);
flashPlayer.LoadScript(new FileInputStream( "octopus.swf "));
//flashPlayer.Startup();
flashPlayer.Play() ;
/*
System.out.println( "IsPlaying: "+flashPlayer.IsPlaying());
System.out.println( "TotalFrames: "+flashPlayer.TotalFrames());
*/
}
}
这个程序导入的 com.macromedia.flash.*;在哪里有啊?若有这样的jar包,在android平台上能用吧,需要怎么改啊 --------------------编程问答-------------------- 在百度 谷歌上搜这个,在添加第三方jar包,希望能帮到你 --------------------编程问答-------------------- 这个估计要用到flash插件!你是不是用到flash了? --------------------编程问答-------------------- 我要用 但是找不到那个jar包啊 --------------------编程问答-------------------- 你要安装这个插件啊!才有那个包!去网上下载插件安装就可以了
补充:移动开发 , Android