Welcome!

Adobe Flex Authors: Yakov Fain, Keith Swenson, Jacques Durand, Pat Romanski, Liz McMillan

Related Topics: AJAX & REA

AJAX & REA: Article

Adobe Introduces FABridge, the Flex AJAX Bridge

New JavaScript Library Enables Developers to Easily Integrate Flex Applications With AJAX Code

Adobe Labs has introduced FABridge, a new JavaScript library enables developers to easily integrate Flex applications with Ajax or DHTML code running in the browser.

The Flex Ajax Bridge (FABridge) is a small, unobtrusive library of code that developers can insert into a Flex application, a Flex component, or even an empty SWF file to expose it to scripting in the browser.

FABridge is built with the “don’t repeat yourself” principle in mind. Rather than having to define new, simplified APIs to expose a graph of ActionScript objects to JavaScript, with FABridge you can make your ActionScript classes available to JavaScript without any additional coding. Once you’ve inserted the library, pretty much anything you can do using ActionScript, you can do using JavaScript.

Flash Player has the ability natively, through the External API (the ExternalInterface class), to call JavaScript from ActionScript and vice versa.

Developers may find the FABridge library useful if
• They are using a rich Flex component in an Ajax application but don’t want to write a lot of Flex code. If they wrap the component in a bridge-enabled stub application. they can script it entirely from JavaScript – including using eval()’d JavaScript generated remotely by the server.
• They have one or two people on their team who know Flex. The FABridge library allows everyone on a team to use the work produced by one or two Flex specialists.
• They are building an integrated RIA with both Flex and AJAX portions. While they could build the integration themselves using ExternalInterface, they might find it faster to start with FABridge as a head start.


More Stories By RIA News Desk

Ever since Google popularized a smarter, more responsive and interactive Web experience by using AJAX (Asynchronous JavaScript + XML) for its Google Maps & Gmail applications, SYS-CON's RIA News Desk has been covering every aspect of Rich Internet Applications and those creating and deploying them. If you have breaking RIA news, please send it to RIA@sys-con.com to share your product and company news coverage with AJAXWorld readers.

Comments (2) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
SYS-CON Brazil News Desk 04/18/06 11:49:11 AM EDT

Adobe Labs has introduced FABridge, a new JavaScript library enables developers to easily integrate Flex applications with Ajax or DHTML code running in the browser. The Flex AJAX Bridge (FABridge) is a small, unobtrusive library of code that developers can insert into a Flex application, a Flex component, or even an empty SWF file to expose it to scripting in the browser.

AJAX news desk 03/10/06 12:54:52 AM EST

Adobe Labs has introduced FABridge, a new JavaScript library enables developers to easily integrate Flex applications with Ajax or DHTML code running in the browser. The Flex AJAX Bridge (FABridge) is a small, unobtrusive library of code that developers can insert into a Flex application, a Flex component, or even an empty SWF file to expose it to scripting in the browser.