Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FSCommand Weirdness

Status
Not open for further replies.

Streetdaddy

Programmer
Jun 10, 1999
161
AU
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=&quot;JavaScript&quot;>
function ebnMap_DoFSCommand(command, args) {
if (command == &quot;coord&quot;) {
alert(args);
}
}
</script>

The HTML code:

<object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot; width=&quot;440&quot; height=&quot;330&quot; ID=&quot;ebnMap&quot;>
<PARAM NAME=movie VALUE=&quot;join/ebnMap.swf&quot;>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#EEEEEE>
<EMBED src=&quot;join/ebnMap.swf&quot; quality=high bgcolor=#EEEEEE WIDTH=440 HEIGHT=330 TYPE=&quot;application/x-shockwave-flash&quot; PLUGINSPAGE=&quot; NAME=&quot;ebnMap&quot;>
</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 first mistake is obvious... using Netscape (sorry to be a bit of a downer, but anyone who's tried to develop a page for IE and netscape will know what I mean).

Is the same version of the Flash player installed on both IE and Netscape? Is all the stuff in the <EMBED> tag the same as in the <OBJECT> one? (I believe object is for IE and embed for netscape).

Can you call the JS function from within the html page in netscape and get it too work?

Just a few ideas anyway - might be useful =)

PetitPal.
 
Dont worry, I know exactly what you mean about cross-browser compatibility woes... But seriously, what kind of web developer would I be if I only catered for IE? I would be kinda like Hungry Jacks and without their vegi-burger.

I'll try those suggestions out :)

Thanks! Miles
vmiles@senet.com.au
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top