• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

flash in java

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 1843
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
pie. 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
reply
    Bookmark Topic Watch Topic
  • New Topic