BT

Facilitating the Spread of Knowledge and Innovation in Professional Software Development

Write for InfoQ

Topics

Choose your language

InfoQ Homepage News Flash4j 3.0 - A Java Api For Flash Development

Flash4j 3.0 - A Java Api For Flash Development

This item in japanese

Bookmarks

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.

Rate this Article

Adoption
Style

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.

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

Community comments

  • Great idea, but...

    by Victor Grazi,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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,

    Your message is awaiting moderation. Thank you for participating in the discussion.

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

  • LOL

    by Dimitry Oslov,

    Your message is awaiting moderation. Thank you for participating in the discussion.

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

  • Re: Great idea, but...

    by Willem Goudsbloem,

    Your message is awaiting moderation. Thank you for participating in the discussion.

    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

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

BT