I have a flash site that I really need to release very soon that, using a fscommand to call an external javascript function, opens a popup window.
I used the default fscommand flash 5 publishing functions, and this works really fine with IE / Netscape on Win2000, and Netscape on MacOS.
It does not, however, work on any MacOS Internet Explorer. Any ideas on why this is so?
Eternal gratitude and free beer to anyone who solves this for me today. :-)
Here's the HTML:
<TITLE>test</TITLE>
<SCRIPT LANGUAGE=JavaScript>
<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
function moos_DoFSCommand(command, args) {
var moosObj = InternetExplorer ? moos : document.moos;
if (command == "signup") {
window.open...
} else if (command == "kamera1") {
window.open...
} else if (command == "kamera2") {
window.open...
}
}
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub moos_FSCommand(ByVal command, ByVal args)\n');
document.write(' call moos_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
<script language="javascript">
var sida = document.URL.substr(document.URL.length - 2,2);
</script>
</HEAD>
<BODY bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<script language="javascript">
document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" WIDTH=714 HEIGHT=520 ID=moos align="middle">');
document.write('<PARAM NAME=movie VALUE="test.swf?grStart='+sida+'">');
document.write('<PARAM NAME=quality VALUE=high>');
document.write('<PARAM NAME=bgcolor VALUE=#FFFFFF>');
document.write('<EMBED src="test.swf?grStart='+sida+'" quality=high bgcolor=#FFFFFF WIDTH=714 HEIGHT=520 swLiveConnect=true NAME=moos TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" align="middle">');
document.write('</EMBED>');
document.write('</OBJECT>');
</script>