This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Five Lines of Code and have Christian Clausen on-line!
See this thread for details.
Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

flash in java

 
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?
 
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.
 
Bartender
Posts: 1840
Eclipse IDE Ruby Java
  • 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.
 
Rancher
Posts: 43016
76
  • 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.
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic