Adobe released a Flex / AJAX Bridge. From Ely Greenfield's blog:
The Flex AJAX Bridge is a small, unobtrusive library of code that you can insert into a flex application, a flex component, a flash movie, or even an empty SWF file to expose it to scripting via the browser. Once you’ve inserted the bridge, pretty much anything you can do from Actionscript, you can do from Javascript.
A lot of what you can do in Flex is becoming possible in JavaScript, but that doesn't mean JavaScript is a better way to do it.
One reason is that the user experience with Flash is more consistent across browsers. AJAX behaves differently on different browsers - your app may work, but exactly how it behaves is somewhat browser-defined. With Flex, any browser that can host the Flash player (which is pretty much all of them, btw) will host your application exactly the same as every other.
Not only does this mean a consistent user experience, but it means you don't have to test your application with every browser known to man. How many times have you seen a shiny new AJAX application that "doesn't work on Firefox but we're working on it"? Or doesn't work on Opera, or doesn't work on Safari, or Camino, or ... The only disclaimer you're likely to have to use with your Flex app is that it doesn't work on Lynx.
http://mxmltips.com/htsrv/trackback.php/37
I'm excited about MXML, and you should be too.
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | > >> | |||||
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
If you don't have it, go get it!
Lin Lin's Tips for using Flex Builder 2.
There's great integration between MXML and Flex Enterprise Services. You can hook a listbox up to a data source and when the data source changes, that change is propagated all the way out to the listbox. It's a very cool infrastructure.
But sometimes you just want to hook up to an existing back end. Here's a good thread on the Macromedia forums with sample code posted by Mike Potter of Adobe.