Streetdaddy
Programmer
Picture, if you will, a simple FSCommand passing a simple argument to a Javascript:
The Flash code:
on (press) {
fscommand ("coord", "Hello World"
}
The JS code:
<script language="JavaScript">
function ebnMap_DoFSCommand(command, args) {
if (command == "coord" {
alert(args);
}
}
</script>
The HTML code:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="440" height="330" ID="ebnMap">
<PARAM NAME=movie VALUE="join/ebnMap.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#EEEEEE>
<EMBED src="join/ebnMap.swf" quality=high bgcolor=#EEEEEE WIDTH=440 HEIGHT=330 TYPE="application/x-shockwave-flash" PLUGINSPAGE=" NAME="ebnMap">
</EMBED>
</object>
Ok, so it works fine in IE (with the little VB Script function included of course). The PROBLEM is that it won't work in Netscape! I can't even track the problem coz I can't get it to output anything. So maybe I'm making a stupid little mistake somewhere? I've looked everywhere for a solution and I can't find it! Can anyone spot the mistake I might have made? Miles
vmiles@senet.com.au
The Flash code:
on (press) {
fscommand ("coord", "Hello World"
}
The JS code:
<script language="JavaScript">
function ebnMap_DoFSCommand(command, args) {
if (command == "coord" {
alert(args);
}
}
</script>
The HTML code:
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="440" height="330" ID="ebnMap">
<PARAM NAME=movie VALUE="join/ebnMap.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#EEEEEE>
<EMBED src="join/ebnMap.swf" quality=high bgcolor=#EEEEEE WIDTH=440 HEIGHT=330 TYPE="application/x-shockwave-flash" PLUGINSPAGE=" NAME="ebnMap">
</EMBED>
</object>
Ok, so it works fine in IE (with the little VB Script function included of course). The PROBLEM is that it won't work in Netscape! I can't even track the problem coz I can't get it to output anything. So maybe I'm making a stupid little mistake somewhere? I've looked everywhere for a solution and I can't find it! Can anyone spot the mistake I might have made? Miles
vmiles@senet.com.au