• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to display flash file(.swf) in java application?

 
Javed Akhtar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to display an image developed in flash (ie .swf extension)
in my java application.I had tried with JMF2.1,but JMF2.1 supports till flash 2 only.Kindly help me to display advance flash application in my Java Application?
I need your help very much. I am so grateful if somebody get back to me as early as posible.
Thanking very much,
Javed
 
Raghu Jamwal
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Javed
Do you need to display the flash image in a webpage?If so copy and paste the code that is generated by flash in the html page,in the place where you want the image to be,and ensure that all your .swf files are in the root directory, eg:if your page is in /html/demoapp/yourpage.html then the swf files shouls be in the demoapp directory.
Hope that helps.
 
Javed Akhtar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Raghu,
Thanks for response,but I don't want to display it in Webpage,Basically I wants to run flash application in my standalone Java application. For example I am having a hello.swf
file and I wants to display it in a Java Frame not in applet or webpage.
Kindly get back to me as early as posible.
Thanks
Javed
 
Yin Yun Yap
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmmm i am having the same problem as yours... however even i have tried to put flash within a html... it also cannot be displayed using JEditorPane...
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Unless someone has developed a Flash viewer in Java (which is very unlikely, especially given the patent issues involved) you're really out of luck, unless you want to write a lot of native code to host the plug-in.
Hmmm. Maybe have a look at what the Jazilla project is up to regarding plug-ins (http://jazilla.sourceforge.net).
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nasty solution - look at Jacob or other Java COM bridge products to see if you can put IE as an activex control on a Java page. We had a couple variations of this *almost* working and decided the requirements didn't really call for it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic