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>
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>