Hi, I am using the ExternalInterface API to communicate between JavaScript and Flex App. The sample code that I wrote to check this functionality works perfectly fine.
However, the same does not work for a slightly different scenario described below: The application that has my swf and js files are being referenced by html pages located on different domains. I am embedding the Flash Object in the html using JavaScript and have set the parameter "allowScriptAccess" to "always" to allow cross-scripting. I am inserting the flash object when the webpage loads in the browser within a div tag through a custom browser toolbar using javascript. (currently testing on firefox) When I test my sample application on the localhost domain, flex app is able to call a method in javascript but the reverse is not working and for any other domain, communication doesn't happen both the ways. Is there a way secure way of handling the above situation both in Firefox and IE. Regards, Gautam.

