Link Details

Link 859463 thumbnail
User 943971 avatar

By dlamotta
via emitrom.com
Published: Oct 06 2012 / 01:08

When it comes to rich and interactive content for the desktop browser, the flash platform is still one of (if not the) best platform on the market. But the close bond between the Flash platform and ActionScript has made it less accessible for other developers (especially Java developers). Flash4j is here to fix this situation. It started as a Java API for Apache Flex, except now we are adding support for other Flash-based libraries to give you even more capabilities. In this release we rewrote the framework from the ground up, fixed a handful of bugs and added an entire set of new features.
  • 10
  • 0
  • 2661
  • 1214

Comments

Add your comment
User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply
User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

its quite shocking to see GWT needed there, there is an alternative to GWT, i think it was Java2JS

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

The great news is that Flash4j has an Apache 2 license, so if you'd like to undertake the effort to use something other than GWT, it's all yours.

User 1003751 avatar

Namor replied ago:

0 votes Vote down Vote up Reply

GWT is waaay better then Java2JS

User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

oops i meant J2JS

User 1003751 avatar

Namor replied ago:

0 votes Vote down Vote up Reply

That s not even close to what GWT has to offer.

User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

yes thats fine when you use GWT, but in this case J2JS make more sense.

User 1003751 avatar

Namor replied ago:

0 votes Vote down Vote up Reply

And why will J2JS makes more sense ?

User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

because J2JS involves hard core coding instead of following what they tell you is right, something very useful in this case if you are coding an framework from GROUND UP.

User 1071025 avatar

Birdman_1969 replied ago:

-1 votes Vote down Vote up Reply

With all the respect i d rather base my work on a project supported by Google(GWT) and a really active community then some no name project (J2JS). And i think "from the ground up" simply means they rewrote the entire API (like stated in the annoucement), it was nt about changing the underlying framework.

User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

"started as a Java API for Apache Flex, except now we are adding support for other Flash-based libraries to give you even more" who are we and what do you means from Ground up , is it a fork. And why couldnt do this in 2005-7 ???

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

The difference between the overall architecture of Flex4j and Flash4j is quite large, and more than a fork you can think of Flash4j as a superset of Flex4j. In the announcement article we explain some of that. 2005-2007... I know! If we could all have our wishes come true... ;-)

User 1003751 avatar

Namor replied ago:

1 votes Vote down Vote up Reply

@infovation_Softwares A fork of what exactly is Flash4j ?

User 1070899 avatar

Scarpa72 replied ago:

0 votes Vote down Vote up Reply

Brillant !!!!

User 1070929 avatar

Rosally_Green replied ago:

0 votes Vote down Vote up Reply

Interesting. Can you explain how this internally work ? I dont see any Java to ActionScript compilation process in the code. How is it possible to do this with GWT only ? Good job !

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

Like Arthur C. Clarke would say, "The only way of discovering the limits of the possible is to venture a little way past them into the impossible." We take the Java to JS, then there is code in custom SWF that bridges the JS to the Flash engine. That's the venturing into the impossible part ;-)

User 1070929 avatar

Rosally_Green replied ago:

0 votes Vote down Vote up Reply

Thx for the answer. "there is code in custom SWF that bridges the JS to the Flash engine" That s exactly the part that i dont understand. How are you making this work ? I m still kind of amazed that i m writing a Flex application without ActionScript/MXML and it s working :)

User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

its like GWT , write in Java and the converter takes care of it, but here GWT cant convert it to flash so they use the GWT generated JS and convert it into AS probably using their secret FALCON project Fork

User 1070929 avatar

Rosally_Green replied ago:

0 votes Vote down Vote up Reply

For i could see Flash4j was created even before Adobe talked about FALCON. I think it s something else. Would you mind telling us David ? :) Is Adobe aware of this ? This could be interesting for them to get Java devs on their gaming platform.

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

You are correct, Rosally_Green: Flash4j has absolutely nothing to do with Falcon. As far as awareness goes, by embracing Flash4j it is the software community who can be helpful in that regard.

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

As stated below, Falcon is not used at all in Flash4j.

User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

so that means Falcon could have been useful in this instead of GWT.

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

To the contrary, it means Falcon has no place for what we are doing with Flash4j.

User 1071025 avatar

Birdman_1969 replied ago:

0 votes Vote down Vote up Reply

This is an interesting approach to Flash development. I did nt know GWT could be used this way. Do you plan to add support for ASwing ? We will def be following you closely now. Keep up the good work.

User 983885 avatar

infovation_Softwares replied ago:

0 votes Vote down Vote up Reply

in that case you should read about Vaadin framework

User 1071025 avatar

Birdman_1969 replied ago:

0 votes Vote down Vote up Reply

Does Vaadin provide a Java API for Flash ? Can i programm games with Vaadin (We are in the gaming industry and were loking to go away from ActionScript since our backends are all Java) ?. And more important for us Can i use AsWing with Vaadin ? I was nt aware of that.

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

GWT is extremely powerful, and Flash4j is a testament to that. There is no immediate plan for ASwing support... though we did toy with the idea before. Thanks for the good comments.

User 943971 avatar

David La Motta replied ago:

0 votes Vote down Vote up Reply

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (9)



Voters Against This Link (0)



    Java Performance Optimization
    Written by: Pierre-Hugues Charbonneau
    Featured Refcardz: Top Refcardz:
    1. Design Patterns
    2. OO JS
    3. Cont. Delivery
    4. Java EE7
    5. HTML5 Mobile
    1. Node.js
    2. Debugging JavaScript
    3. OO JS
    4. JSON
    5. Ajax