I travelled last week, and I spent most of my evenings and this weekend getting up to speed on Flex. Cairngorm makes a great deal of sense, and the need for it became obvious as soon as I started an app of any fair size. Heck, I'd use it for "Hello World."
Anyhow, I've also spend a good deal of time over the past year doing Ajax applications. I've done them by hand with div replacement, by hand with DOM manipulation, with Prototype/Scriptaculous, Dojo, and Spry. And, wow, do I really just prefer Flex for doing applications
Here's a few quick reasons that I'm really digging Flex:
Vector Graphics
I had an application where it'd make a lot more sense to show some aggregate data in a pie chart. It took less than a minute to add the chart. A minute of binding a slider in a view to a property of that view's value object...and suddenly changes to a number of small views changed the chart in real time. I don't know if that'd even be possible in Javascript.
File Uploads
Without some serious hacks, it's nigh impossible to upload files via Ajax. In Flex, it's a no-brainer, and you can even show progres indicators. Rock on.
Need a control? Draw it.
I used to do a lot of Flash MX / Flash Remoting work, back in the AS1 days. I had an opportunity to do a little control prototyping last week, and I forgot how much fun it was. Now, with Flex, I can implement custom controls (down to the pixel!) in Flash, and then use them in Flex. Sweet.
Remoting
Going over AMF is nice. Going over AMF and having marshalling between AS classes and CFCs is even nicer.
It just works.
A SWF is a SWF is a SWF. Not much, if any, browser inconsistency.
5 comments - Posted by Joe Rinehart at 10:39 AM - Categories: Flex and ColdFusion