hmm I'm not sure I understand what part is your problem.
Are you having problem making javascript calls to flex using FABridge?
You seem to have set up the fab call right in flex. Now in your
javascript you should do some of the following.
When you insert your flash file into the html, you have to set up a
bridge name via the flashvars. For example
<PARAM NAME=FlashVars VALUE="bridgeName=flex">
Now that you've done that you can set up some javascript calls to
ensure the flex has loaded fine.
________________________________________________________
var flLoaded = false;
var flexApp;
var initCallback = function() {
flexApp = FABridge.flex.root();
if(flexApp){
flLoaded = true;
}
return;
}
// register the callback to our Flex application with the 'bridgeName'
of 'flex'
FABridge.addInitializationCallback("flex", initCallback);
________________________________________________________
That will set up the connection to the flex application, to make calls
to flex functions simply do
if(flLoaded){
flexApp.flexFunctionName();
}
Now to make calls from flex to javascript I normally use the External
interface call.
ExternalInterface.call("javascriptFunction", parameter);
I hope this helps