jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes flash in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "flash in java" Watch "flash in java" New topic

flash in java

Evan Pierce
Ranch Hand

Joined: Jan 31, 2006
Posts: 36
hey, i was wondering if anyone knew of any ways of embedding flash within a java app?
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
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?

Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Evan Pierce
Ranch Hand

Joined: Jan 31, 2006
Posts: 36
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

Joined: Aug 20, 2001
Posts: 1824

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 ]

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Evan Pierce
Ranch Hand

Joined: Jan 31, 2006
Posts: 36
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

Joined: Mar 22, 2005
Posts: 42965
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: flash in java
It's not a secret anymore!