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平台上能用吧,需要怎么改啊
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平台上能用吧,需要怎么改啊
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货