Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (686)
Games in Android Showcase (198)
games submitted by our members
Games in WIP (758)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Using flash within java  (Read 2273 times)
0 Members and 1 Guest are viewing this topic.
Offline kammce

Senior Newbie

« Posted 2011-08-13 07:07:13 »

Is there anyway to get a flash animation embedded into a java program as an object, so that I can show the object as an animation.
Offline tberthel
« Reply #1 - Posted 2011-08-13 12:44:31 »

Sure.  Java Browsers like Opera load the Flash plugin and so can you.

Offline kammce

Senior Newbie

« Reply #2 - Posted 2011-08-13 17:36:11 »

Any suggestions on how I can go about that or should I just Google it?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Cero
« Reply #3 - Posted 2011-08-13 18:34:05 »

when researching video playback, I looked in this aswell

can't speak for SWF files really, but flv and stuff... not that easy

Offline gouessej
« Reply #4 - Posted 2011-08-16 08:50:22 »

when researching video playback, I looked in this aswell

can't speak for SWF files really, but flv and stuff... not that easy
What about VLCJ, JFFMPEG and Xuggler?

JFlashPlayer works only on Windows Sad

Flagstone Transform SWF and JSwiff seem good Smiley

Offline Cero
« Reply #5 - Posted 2011-08-16 12:04:25 »

when researching video playback, I looked in this aswell

can't speak for SWF files really, but flv and stuff... not that easy
What about VLCJ, JFFMPEG and Xuggler?

Apart from licensing, writing code that you can ship, that will simply play your high quality video files on all 3 platforms, is just extremely difficult

Offline zammbi

JGO Coder

Medals: 4

« Reply #6 - Posted 2011-09-07 09:48:10 »

JavaFX has own WebView control, though not sure if the beta can handle Flash yet.

Current project - Rename and Sort
Offline Mr. Gol

Senior Devvie

Medals: 1

« Reply #7 - Posted 2011-09-07 19:16:35 »

Please don't do this, unless you absolutely have to.

I've tried this in 2007, we needed to preview advertisements (which are usually SWFs) inside a Swing application. There are basically two ways to do this. The first is to parse the SWF file, which is what the libraries proposed in this thread attempt to do. Unfortunately this is extremely difficult as the SWF file format is very complex and Adobe provides minimal information on it [1]. The libraries therefore only support a small subset of Flash's features, and the chances of your animation working as it should are minimal.

The other way is to use Flash Player itself to render the SWF, and then displaying the result in a Swing component. This is the approach we used, but it requires a fair bit of platform-specific code, and only works if the user has Flash Player installed. I'm not even sure if it works on all platforms, we only supported Windows in the end. Depending on your needs it might also be too slow.

[1] this is also the reason why the alternatives for Flash Player on Linux are so poor. It's nearly impossible to emulate Flash Player and especially ActionScript with the material Adobe has provided. Depending on
Offline Riven

« JGO Overlord »

Medals: 1237
Projects: 4
Exp: 16 years

Hand over your head.

« Reply #8 - Posted 2011-09-07 19:33:40 »

Or you embed webkit in 10 minutes, and serve flash through a webpage.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings!
Offline Nate

« JGO Bitwise Duke »

Medals: 167
Projects: 4
Exp: 14 years

Esoteric Software

« Reply #9 - Posted 2011-09-07 22:02:17 »

Or you can use Awesominium to render webkit to an OpenGL texture and server the Flash through a webpage. Smiley libgdx has a (recently deprecated) Awesominium JNI wrapper.

Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

roseslayer (424 views)
2016-08-06 11:43:29

roseslayer (385 views)
2016-08-06 09:43:11

xTheGamerCodes (461 views)
2016-08-04 15:40:59

xTheGamerCodes (455 views)
2016-08-04 15:40:24

orrenravid (804 views)
2016-07-16 03:57:23

theagentd (880 views)
2016-07-11 14:28:54

Hydroque (976 views)
2016-07-06 05:56:57

Hydroque (995 views)
2016-07-03 08:52:54

GrandCastle (807 views)
2016-07-01 09:13:47

GrandCastle (638 views)
2016-07-01 09:09:45
Rendering resources
by Roquen
2016-08-08 05:55:21

Rendering resources
by Roquen
2016-08-08 05:52:42

Rendering resources
by Roquen
2016-08-08 05:50:38

Rendering resources
by Roquen
2016-08-08 05:49:53

Rendering resources
by Roquen
2016-08-08 05:32:39

Making a Dynamic Plugin System
by Hydroque
2016-06-25 00:13:25

Java Data structures
by BinaryMonkL
2016-06-13 21:22:09

Java Data structures
by BinaryMonkL
2016-06-13 21:20:42 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!