Having a flash application with buttons that call javascript functions, the code works in all browsers except IE9. The function call is structured like this:
ExternalInterface.call(
"myAmazingFunction",
someString1, someString2);
The corresponding Javascript function is defined as follows:
function myAmazingFunction(someString1, someString2) {
window.open('https://twitter.com/share?url=http%3A%2F%2Fwww.mysite.com%2Fapage.php&via=atwitteraccount&text=Some%20text%22&related=atwitteraccount',
'windowname',
'height=290,width=510');
}
However, in IE9 the function fails to execute and an error appears in the console:
SCRIPT438: Object doesn't support property or method 'SetReturnValue'
index.php, line 1 character 1
Even though enabling compatibility view makes it work, the error persists. Is there a known issue with IE9 causing this problem and what steps can be taken to resolve it?