-
I am trying to initialize some variables that I've fed into Flash using the following script:
<SCRIPT LANGUAGE='JavaScript'>
<!--
function flashObj() {
if(navigator.appName=="Netscape") {
return document.embeds[0]
} else {
return window['flashObject'];
}
}
var countvalues = "10,10,10,70";
var colourvalues = "ccff99,660099,778888,9900000";
var categoryvalues = "Hello,World,!,!";
var urlvalues = "http://www.msn.com,http://www.cbc.ca,http://www.thestar.com,http://www.ford.com";
var rollovervalue = "Test 1, Test 2, Test 3, Test 4";
flashObj().setVariable("count", countvalues)
flashObj().setVariable("colour", colourvalues)
flashObj().setVariable("category", categoryvalues)
flashObj().setVariable("url", urlvalues)
flashObj().setVariable("rollover", rollovervalue)
flashObj().Play()
-->
</SCRIPT>
I get all of the variables in Internet Explorer and the movie works perfectly but nothing shows up in Netscape. Does anyone know why?
Thanks,
Birdman
-
Hi,
it used to work in Netscape 4 :(
Actually, you had to place some "swliveconnect=true" with your embed code to make it work, and netscape chose to no longer support that feature with the new browser. There will be a better way to do it, they say - sometime in the future
Musicman