There are several solutions to use the FABridge in your Flex project. Those are the most common:
- In Flex Builder 3, right click on your project, select “Create Ajax Bridge..” and follow the wizard.
- Follow the Flex 3 documentation: Integrating with the Flex Ajax Bridge.
After the jump, discover the ONE solution that has it all…
The idea is simple: instead of adding an external source directory to our Flex application, we are going to create a Flex Library that will contain the FABridge sources. This can be done really easily in Flex Builder 3:
- Click “File>New…>Flex Library Project”. Name it “FABridge” and click “Finish”.
- In this new project, create a new “bridge” package.
- And that’s it!
Now, if you want to use the FABridge inside one of your projects, simply add this FABridge project to your library path and voila! You can also copy the compiled FABridge.swc library (from your \FABridge\bin folder) in the “libs” folder of your project.