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.
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.