-
Hey! I'm having problems getting Netscape 4.7 to accept an FS_Command from my Flash movie. It works flawlessly in IE5.x and continues wihtout a beat; in NN4.7, the movie plays to completion, but doesn't pass anything to my movie_DoFSCommand Javascript.
Is this an outstanding issue with Netscape or am I perhaps overlooking a detail about the last frame of my movie? I've already extensively tested the Javascript and I've verified that the script doesn't even run in Netscape (whereas it does in IE), so the signs seem to indicate a problem with the FS Command.
Thanks ahead of time for anyone's help and expertise.
- Beatbug
-
Most likely the problem is in your HTML code. Check your EMBED tag and be sure you have this property:
swLiveConnect="true"
in the EMBED tag. If you still cannot get it to work, perhaps you could show me the HTML code you are using?
<EMBED src="/cgi-bin/ubb/Members/sigs/00000205.swf" quality=high WIDTH=500 HEIGHT=50 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED>
-
Yep, already have the swLiveConnect=true in place. So here's the code I'm using, more or less unchanged from the original code generated by Flash:
<HTML>
<HEAD>
<TITLE>intro</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<SCRIPT LANGUAGE=JavaScript>
< !--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function intro_DoFSCommand(command, args) {
alert('boogey test!');
var introObj = InternetExplorer ? intro : document.intro;
if(command == "finished") {
location.href = "http://www.location.com/main.htm";
}
}
// Hook for Internet Explorer
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 intro_FSCommand(ByVal command, ByVal args)\n');
document.write(' call intro_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
< !-- URL's used in the movie-->
< !-- text used in the movie-->
<OBJECT classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=intro WIDTH=620 HEIGHT=400>
<PARAM NAME=movie VALUE="intro.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="intro.swf" loop=false quality=high bgcolor=#FFFFFF WIDTH=620 HEIGHT=400 swLiveConnect=true
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>
Thanks again for your assistance and insight!
- Beatbug
-
Yep, already have the swLiveConnect=true in place. So here's the code I'm using, more or less unchanged from the original code generated by Flash:
<PLAINTEXT>
<HTML>
<HEAD>
<TITLE>intro</TITLE>
</HEAD>
<BODY bgcolor="#FFFFFF">
<SCRIPT LANGUAGE=JavaScript>
< !--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function intro_DoFSCommand(command, args) {
alert('boogey test!');
var introObj = InternetExplorer ? intro : document.intro;
if(command == "finished") {
location.href = "http://www.location.com/main.htm";
}
}
// Hook for Internet Explorer
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 intro_FSCommand(ByVal command, ByVal args)\n');
document.write(' call intro_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}
//-->
</SCRIPT>
< !-- URL's used in the movie-->
< !-- text used in the movie-->
<OBJECT classid="clsid 27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=intro WIDTH=620 HEIGHT=400>
<PARAM NAME=movie VALUE="intro.swf"> <PARAM NAME=loop VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="intro.swf" loop=false quality=high bgcolor=#FFFFFF WIDTH=620 HEIGHT=400 swLiveConnect=true
TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>
</OBJECT>
</BODY>
</HTML>
</PLAINTEXT>
Thanks again for your assistance and insight!
- Beatbug
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|