Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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 1878 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
« League of Dukes »

« JGO Overlord »


Medals: 841
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
Online Nate

« JGO Bitwise Duke »


Medals: 158
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.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

rwatson462 (34 views)
2014-12-15 09:26:44

Mr.CodeIt (25 views)
2014-12-14 19:50:38

BurntPizza (52 views)
2014-12-09 22:41:13

BurntPizza (85 views)
2014-12-08 04:46:31

JscottyBieshaar (47 views)
2014-12-05 12:39:02

SHC (61 views)
2014-12-03 16:27:13

CopyableCougar4 (63 views)
2014-11-29 21:32:03

toopeicgaming1999 (125 views)
2014-11-26 15:22:04

toopeicgaming1999 (115 views)
2014-11-26 15:20:36

toopeicgaming1999 (33 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50
java-gaming.org 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‑gaming.org
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!