Flash Frustration

As I'm sure is documented elsewhere, browser implementation of the Flash plugin is inconsistent. In particular, access to FSCommand or Javascript access to and from the Flash plugin is non-existant in Firebird and Firefox. Nor does it work on a Mac (except in N6.2+ apparently but how many users use it, in the grand scheme of things). As well, there's actually no way to detect the browser from within Flash. And since there's no way to pass a variable using Javascript to Flash, your only other option is to use a server-side solution which writes the parameters you want at load time or using loadVariables.

Published February 20, 2004 · Updated September 17, 2005
Categorized as Other
Short URL: https://snook.ca/s/150

Conversation

10 Comments · RSS feed
polairs said on July 25, 2004

actually, i have made a little test app that checks for fscommand ability. the source (MX 04) is available here
your html file should be:

[html]
[script]window.name = "mainWin"[/script]
[script Language="JavaScript" event="FSCommand (command, args)" for="flash"]
switch(command){
case "runTest":
flash.SetVariable("ok","true")
break
case "proceed":
window.open("index2.html","mainWin")
break
}
[/script]
[div align="center"][embed src="fscommandtest.swf" name="flash" id="flash" width="200" height="100"][ /center]
[/html]
substituting all the brackets for angle brackets.
that should do ya

Paul said on December 15, 2004

Hi, I came across this post looking for a solution to my problem.

I have a page at http://web.singnet.com.sg/~polyp/repertoire.html that allows users to click and load a remote flash movie in a "Flash Holder" swf. The page works fine in IE, but fails in Firefox.

Could anybody help? Thanks!

Phanton said on January 06, 2005

I have an answer to your question.

Don't promote or condone the useage of FireFox until they have it fixed! Having something as fundamental as this missing from a browser is laughable!!

How long has Flash had the fsCommand implemented...and it still doesnt work!?!? Rest assured if this were Microsoft they would have had it fixed ages ago.

Sorry about the ranting but c'mon people, lets apply the same pressure as Microsoft would get with as big a screw-up as this one.

Phanton.

abstractizm said on January 25, 2005

I hate that FireSux thing. Message me asap if you guys have any soulution!

abs

Mick Rose said on March 30, 2005

In the process of a complete revamp of our company I also came into this issue with Firefox and javascript commands such as TGotoLabel. So I know exactly how you feel

P.S. I have no involvemnet in the site that is currently online.

Mick Rose said on March 30, 2005

In the process of a complete revamp of our company I also came into this issue with Firefox and javascript commands such as TGotoLabel. So I know exactly how you feel

P.S. I have no involvemnet in the site that is currently online.

Brian Rinaldi said on June 14, 2005

I hope Phanton is kidding...I mean I am still waiting for transparent PNG support in IE.

netdragon said on February 13, 2006

The problem isn't Firefox. It's that plugin writers didn't feel the need to update their plugins since NS4, and now are getting their butts kicked for it. Blame Macromedia and Microsoft, not Mozilla, for 6 years of laziness.

jeremy said on June 02, 2006

<SCRIPT LANGUAGE="JavaScript">
<!--
document.write(
'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1024" height="540" id="movie">\n'+
' <param name="movie" value="tw4.swf'+document.location.search+'" />\n'+
' <param name="quality" value="high" />\n'+
' <param name="menu" value="false" />\n'+
' <param name="swliveconnect" value="true" />\n'+
' <EMBED src="tw4.swf'+document.location.search+'"\n'+
' quality=high WIDTH="1024" HEIGHT="540" menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swLiveConnect="true"></embed>\n'+
'</OBJECT>');
//-->
</SCRIPT>

jeremy said on June 02, 2006

[SCRIPT LANGUAGE="JavaScript"]
[!--
document.write(
'[object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1024" height="540" id="movie"]\n'+
' [param name="movie" value="tw4.swf'+document.location.search+'" /]\n'+
' [param name="quality" value="high" /]\n'+
' [param name="menu" value="false" /]\n'+
' [param name="swliveconnect" value="true" /]\n'+
' [EMBED src="tw4.swf'+document.location.search+'"\n'+
' quality=high WIDTH="1024" HEIGHT="540" menu="false" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" swLiveConnect="true"][/embed]\n'+
'[/OBJECT]');
//--]
[/SCRIPT]

Sorry, comments are closed for this post. If you have any further questions or comments, feel free to send them to me directly.