BT

Flash4j 3.0 - A Java Api For Flash Development

by Kostis Kapelonis on Jan 16, 2013 |

Emitrom, a company providing custom enterprise software application services, has recently released Flash4j version 3.0 under the Apache Licence. Flash4j is a Java API (initially a wrapper over Apache Flex) that offers Java developers a familiar way to develop Flash applications on the desktop or on mobile devices.

Flash development is typically associated with ActionScript, a scripting language that might alienate Java developers who are not accustomed to scripting languages (a similar barrier is sometimes JavaScript). Flash4j offers instead a full Java API which is similar to the one found in Swing, GWT or Wicket.

Flash4j offers as self-contained Java classes:

  • Controls such as buttons, menus, datagrids, lists, Date choosers etc.
  • Containers such as Windows, boxes, accordions
  • Advanced controls for charts and graphs
  • An event system similar to Swing

There is a live demo showing several examples along with their source code.

It is interesting to note that even though Flash4j is clearly aimed at Flash runtimes, Emitrom acknowledges the importance of HTML5 as a fallback mechanism. Thus, Flash4j has smart detection for the presence of a Flash environment allowing the developer to handle differently devices that do not support Flash. It is therefore possible to write a Flash4j application that conditionally serves HTML5 depending on the environment.

Flash4j can also be integrated with:

The support for Adobe Air is important since it allows Flash4j to target applications that run on the desktop outside the browser. Therefore Emitrom argues that with Flash4j a single codebase written in Java can run on the desktop (via Adobe Air), on the browser (via Flash) and on mobile devices (via HTML5 from GWT). This makes development of cross platform applications (or games) easier since no porting is involved.

For more information, visit the Reference Documentation and Forum. Commercial support options are also available.

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Great idea, but... by Victor Grazi

It sounds like a really great idea, but isn't Flash on the way out? Why are people still investing in it?

I like it by Dimitry Oslov

This is indeed very brillant.
Flash will still be relevant for at least 5 more years. Plus there are organisations that wont/cant update their browser and still needs Flash solutions.
And it looks like Emitrom provides a nice way to fall back to HTML5 for platform where Flash is not supported.
Definitely the best thing i ve seen build around Flash.

Re: Great idea, but... by Giorgio Galante

replace "isn't Flash on the way out" with "aren't Flash and Java on the way out" ;)

LOL by Dimitry Oslov

Last time i checked Java was still running the entreprise. Did i missed something ? :)

Re: Great idea, but... by Willem Goudsbloem

replace "isn't Flash on the way out" with "aren't Flash and Java on the way out" ;)


Wonder what you think is on it's way in...

Flash is on it's way out, however everything Java (and everything that's related BB, Android, etc.. or what runs on the JVM) is stronger than ever.

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

5 Discuss

Educational Content

General Feedback
Bugs
Advertising
Editorial
InfoQ.com and all content copyright © 2006-2014 C4Media Inc. InfoQ.com hosted at Contegix, the best ISP we've ever worked with.
Privacy policy
BT