Flex & Ajax Together: FABridge
Macromedia has a lot of wonderful tools for the developer community. One of the most impressive new tools, Flex 2.0, has been developed with ColdFusion integration in mind. Macromedia threw out a new resource by introducing a new library of code called the Flex Ajax Bridge (FABridge). The new code can be inserted into a Flex application, a Flex component or an empty SWF file in order to expose it to scripting in the browser.
Ely Greenfield gave an apt description of the new toy over at Macromedia’s (a division of Adobe) website. He broke things down, explaining what the FABridge is and what to do with it.
The ExternalInterface class also limits what you can pass across the gap – primitive types, arrays, and simple objects are legal, but user-defined classes, with associated properties and methods, are off-limits. You’re limited in what you can do.
Next he goes into where to use the FABridge. He says the library may be useful if you want to use a rich Flex component in an Ajax application but don’t want to write a lot of Flex code. If only a couple of people know how to use Flex, this FABridge will allow everyone to use the work of the Flex dudes. Finally, if you’re building an integrated RIA with both Flex and Ajax portions, he suggests on might find it faster to start with FABridge as a head start.
He said there are some limitations on the FABridge in its current state, which is pre-alpha. He said testing has been done on Firefox 1.5 and Internet Explorer 6.0 (SP2). Neither Linux nor Macintosh has been tested.
John Stith is a staff writer for WebProNews covering technology and business.