PDA

View Full Version : code that talks to a flash movie works on IE but not on Netscape


trikota
10-21-2002, 05:22 AM
I have a code that talks to a flash movie in another frame.
It passes some variables to the movie.
It works on IE 6 on pc but not on Netscape 4.7.
It doesn't break it at least.

here is the code.

<head>
<SCRIPT LANGUAGE=JavaScript>
<!--
function setFlash(a,b,c)
{
top.frames["nav"].document.gMovie.SetVariable ("_root.code.aSelect", "" + a);
top.frames["nav"].document.gMovie.SetVariable ("_root.code.bSelect", "" + b);
top.frames["nav"].document.gMovie.SetVariable ("_root.code.cSelect", "" + c);
}
//-->
</SCRIPT>
</head>

<body onload="javascript:setFlash(7,0,0);"></body>

glenngv
10-21-2002, 07:18 AM
isn't it an old problem that has been solved already?

http://codingforums.com/showthread.php?s=&threadid=7059&highlight=flash

trikota
10-22-2002, 04:05 AM
I know, you are right.

I was so tired that I couldn't find that thread when I posted this thread.

I remember it working, but now for some reason it doesn't...

In the menu file I have this code that embeds the swf file. I think I probably have conflicting things in it, but since I don't know what they are, I don't know how to fix them. ANd I swear it used to work.

<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="760" height="230" id="gMovie">
<param name=movie value="empa_menu.swf">
<param name=quality value=high>
<param name="gMovie" value="exactfit">
<embed
src="empa_menu.swf"
quality=high
pluginspage="http://www.macromedia.com/go/flashplayer/"
width="760"
height="230"
scale="exactfit"
id="gMovie"
name="gMovie">
</embed>
</object>