• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

flash in java

 
Evan Pierce
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey, i was wondering if anyone knew of any ways of embedding flash within a java app?
 
Peter Chase
Ranch Hand
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you really mean embedding Flash in a Java application? Or do you mean using Flash within a Web application that uses Java on the server side?

If you mean the former, presumably you want some way to embed Flash within a Java (Swing?) GUI. It sounds like the sort of thing for which someone might have worked-out a solution, but I suspect that solution would involve native code, not just pure Java.

Did you Google yet?
 
Evan Pierce
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im working on a 2d game and i want to display a .swf movie behind my game. and yes ive googled but havent come up with anything useful.
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I look for this the other day -- I forget the search terms that I used; try Java + Flash + Player

I did come across JFlash -- unfortuntatley, JFlash is ContributionWare -- you can only use it if you contribute to the project!

JFlashPlayer]/URL] is commercial ware, and [URL=http://www.jswiff.com/]JSwiff is more .SWF creation than viewer, although it might be worth looking at to see if it has some viewer in it somewhere.

Caveat: I havn't evaluated any of these, so I don't know how suitable they might be.
[ July 27, 2006: Message edited by: Joel McNary ]
 
Evan Pierce
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
upon further research i found that JMF supports up to flash2. how would one go about displaying a flash2 video with JMF? the animation im trying to display is very simple and im pretty sure flash2 could handle it.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JMF pages list a number of code samples on how to embed a player. I would imagine that it makes little difference what kind of format the embedded content has.

QT4J (QuickTime for Java) can also handle Flash -and I think something much more recent than Flash 2-, but I'm not sure if you can draw on top of it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic