How to run a flash application(*.swf) in java application?

How to run a flash application(*.swf) in java application? I have developed a flash program with macromedia Flash.And I should run it in a java application,but I don't know how can? There are KeyBroad,Mouse events respond in the flash program.Can you tell me how I can import and run the flash application in a java application?Which Class should I use?and how about the code? Thanks for your help so much.

[421 byte] By [MicroFanns] at [2007-9-30 4:10:37]
# 1
I also try in several ways to do that. But always I failed. So can anyone pls tell me the proper way to do it or give the example source code.
dilum_jagoda at 2007-6-29 17:54:57 > top of Java-index,Administration Tools,Sun Connection...
# 2
please tell me how to run *.swf file in java
connectjava at 2007-6-29 17:54:57 > top of Java-index,Administration Tools,Sun Connection...
# 3
I haven't tried but in my opinion .swf files can't be just "started". You have to use some Flash player to view their content. Java as far as I know do not include flash player so the only option is to start flash exe. How to start external process was desribed above.
tmollov at 2007-6-29 17:54:57 > top of Java-index,Administration Tools,Sun Connection...
# 4
I work on window.Runtime.getRuntime().exec( " IEXPLORE c:\file.swf ");
pakorn@kmutt at 2007-6-29 17:54:57 > top of Java-index,Administration Tools,Sun Connection...
# 5

Hello,

Lanching the .swf in IEXPLORE will work but you can also load Flash files in two other ways.

You can load older (I think it's flash 4) .swf files directly into a Java application using JMF. Although it's reasonably fiddley and only works for old flash files (you can publish simple flash movies as older versions but the new features don't work).

Or in Flash you can publish as a .exe file (go into "Publish Settings" and select "Windows Projector (.exe)"). then run this with the Runtime commands.

Hope this helps.

Alastair.

ALASTAIR at 2007-6-29 17:54:57 > top of Java-index,Administration Tools,Sun Connection...