Display flash in JAVA

HOw to display a flash file(.swf) in java? and use what component to contain it(eg. jPanel, jFrame…)

thanks =)

dunno, but not related to LWJGL development anyway…

As far as I know it is not possible.

You can try JavaSWF2

http://www.anotherbigidea.com/javaswf/index.html

It just parses the file. You have to create the code to display the stuff.

this is general knowledge btw, i have never had any use of it so I never tried.

You can only use swf’s which are only movies. that IS flash version 2 or under. Unfortunetly, most swf are no where near as good quality as Java games, so you can relax.

  1. Why do you need to display a SWF in an OpenGL game anyway? as a movie? perhaps, but your way better using something like an AVI or an MPG. Decode it, and use it accordingly.

My 2 Pence

Hi there,

I’ve “googled” once and found this interesting link:
http://www.javaapis.com/jflashplayer/

Hope that helps.
Unfortunately it’s commercial :(.

This is very off-topic indeed :stuck_out_tongue:

My suggestions is to use blender3D as a tool. The toughts are:

  • there is a way to convert between .swf and blender format.
  • there is blender2java, which converts blender to format to java3D related format (not sure how far their format goes, but it might export an scenegraph using XML and behaviours, but I’m not sure)

[quote]HOw to display a flash file(.swf) in java? and use what component to contain it(eg. jPanel, jFrame…)
thanks =)
[/quote]
Ok… As mentioned this is not a LWJGL question, but check out JNIWrapper (www.jniwrapper.com)… You can easily load the activeX/com shockwave player in Java.

There is an evaluation version of JNIWraooer Available that has a demo regarding .swf loading/displaying…