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.
Tweet
SaveShareSend
Tags: announcement, flash-flex, frameworks, java
Comments
David La Motta replied ago:
Here is a quick Starling demo: http://www.emitrom.com/flash4j/tutorials/hello-starling
infovation_Softwares replied ago:
its quite shocking to see GWT needed there, there is an alternative to GWT, i think it was Java2JS
David La Motta replied ago:
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.
Namor replied ago:
GWT is waaay better then Java2JS
infovation_Softwares replied ago:
oops i meant J2JS
Namor replied ago:
That s not even close to what GWT has to offer.
infovation_Softwares replied ago:
yes thats fine when you use GWT, but in this case J2JS make more sense.
Namor replied ago:
And why will J2JS makes more sense ?
infovation_Softwares replied ago:
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.
Birdman_1969 replied ago:
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.
infovation_Softwares replied ago:
"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 ???
David La Motta replied ago:
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... ;-)
Namor replied ago:
@infovation_Softwares A fork of what exactly is Flash4j ?
Scarpa72 replied ago:
Brillant !!!!
Rosally_Green replied ago:
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 !
David La Motta replied ago:
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 ;-)
Rosally_Green replied ago:
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 :)
infovation_Softwares replied ago:
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
Rosally_Green replied ago:
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.
David La Motta replied ago:
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.
David La Motta replied ago:
As stated below, Falcon is not used at all in Flash4j.
infovation_Softwares replied ago:
so that means Falcon could have been useful in this instead of GWT.
David La Motta replied ago:
To the contrary, it means Falcon has no place for what we are doing with Flash4j.
Birdman_1969 replied ago:
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.
infovation_Softwares replied ago:
in that case you should read about Vaadin framework
Birdman_1969 replied ago:
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.
David La Motta replied ago:
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.
David La Motta replied ago:
Flash4j 3.0 GA was released today. http://www.dzone.com/links/announcing_flash4j_30_ga.html
Voters For This Link (9)
Voters Against This Link (0)