JavaFX should have been my first choice being a Java developer
Today while browsing Manning.com for what books they’ve recently released, I stumbled upon “Hello Flex 4.” Not to say I’ve bought this book, but decided I wanted to have a look at Adobe Flex. Did some quick overviews of it and being a Java developer decided maybe JavaFX would be worth my time. At first look JavaFX looked cool and the JavaFX Script did not seem very daunting. A quick “Hello World!” in JavaFX was pretty straight forward with the JavaFX Eclipse plugin installed. What JavaFX seemed to lack though was straight forward integration into a Maven webapp, specifically a Spring MVC webapp. I had found a couple blog posts and articles that pointed me to a couple different JavaFX maven compilers, one on SourceForge at http://m2-javafxc.sourceforge.net and another at http://wiki.jfrog.org/confluence/display/JP/JavaFX+Maven+Plugin. It just didn’t seem simple or much fun. The other thing is being a realest, I figured most visitors to a website now are likely to have the Flash player installed, so I decided to give Adobe Flex a second look.
Adobe Flex round 2
My very first impression of Adobe Flex was before taking a look at JavaFX. I saw the screencast at http://www.adobe.com/products/flex/media/flexapp which looked really cool. At first I thought Flex applications could only be developed using Flex Builder which wasn’t free, but then discovered I could download the Flex SDK. I downloaded the Flex 4 SDK. After that I looked around for some Eclipse plugin and found the AXDT plugins. Then following the documentation and using the code examples on AXDT’s website, I quickly created the examples in Eclipse in both ActionScript and MXML. ActionScript resembles closely the Java syntax, so wasn’t too complicated. MXML to me was pretty neat. In the end all of this allowed me to compile either the ActionScript and MXML examples into SWF files that can be embedded in pretty well any web application.
Conclusion
This in no means has been an exhaustive depiction of Adobe Flex’s feature set, or was it meant to be a good comparison to JavaFX, or other competitors like Microsoft Silverlight which I didn’t even bother looking into since I’m not a fan of Microsoft. All I can say is that even as a Java advocate, Adobe Flex seems pretty impressive and I’ve already thought of a few enterprise projects for the company I work for where it could be used in cool ways.