Ultrashock Forums > Development > Client Side
FSCommand errors.

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!

Old 2001-04-05

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>
postbit arrow 2 comments | 678 views postbit arrow Reply: with Quote   
Registered User
pgary is offline
seperator
Posts: 15
2001-03-23
seperator

Ultrashock Member Comments:
shakib shakib is offline 2001-04-05 #2 Old  
reply posted in ActionScript Forum
Reply With Quote  
thilss thilss is offline thilss lives in Bangladesh 2008-12-08 #3 Old  
you didn't finish your html page nor did you post your flash code. If you could post that, i could give it a looksie, or maybe im missing it, idk
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: