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>
[removed]
<!—
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) {
[removed](’[removed] n’);
[removed](‘on error resume next n’);
[removed](‘Sub moos_FSCommand(ByVal command, ByVal args)n’);
[removed](’ call moos_DoFSCommand(command, args)n’);
[removed](‘end subn’);
[removed](’[removed] n’);
}
//—>
[removed]
[removed]
var sida = document.URL.substr(document.URL.length - 2,2);
[removed]
</HEAD>
<BODY bgcolor=”#FFFFFF” leftmargin=“0” topmargin=“0” marginwidth=“0” marginheight=“0”>
[removed]
[removed](’<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”>’);
[removed](’‘);
[removed](’‘);
[removed](’‘);
[removed](’<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”>’);
[removed](’</EMBED>’);
[removed](’</OBJECT>’);
[removed]


