Importing flash images/videos into a java game.

Hey all , the topic says it all.I was asked this question by a friend and I honestly did not know if and how it is possible?To import .swf into java … just like we import images for a 2D game?Is it possible?My only experience has been with 2d tile-based games , so I could not answer his question.If anyone is able to help me here I would be grateful.

I’ve heard of it being done using Runtime.exec(…) by a person in the java forums, you’ll have to google it. I haven’t heard of a flash API for java.

Actually, I think you could use the JDIC API to play Flash. I just tried the JDIC browser test provided on their site and it opened the flash animation on http://www.java.com without any problems! Wow, that opens up a lot of possibilities!

Here’s the browser test webstart link: http://javadesktop.org/jdic/demo/Browser/browser.jnlp

And its on the JDIC homepage: https://jdic.dev.java.net/

Good luck using JDIC though, I’m still trying to build it :-\ . Its not as user friendly as JOGL.

Keith

Thanks for the helpfull reply :slight_smile:

I am gonna take a look at it now and decide accordingly :slight_smile:

JDIC : be aware of its lack of support. Every release brings unfortunately new problems in the Swing-heavyweight integration. I suggest using the release from june 2006.

Flash integration : there was a pure java player released a year or two ago, but I can’t remember its name (JFlash seems dead)

Lilian :slight_smile:

Doesn’t JavaMediaFramwork support swf playback?

Well, probably not an up-to-date version… :-\