I've been using swfobject in one of my projects in order to detect if the end-user has a version of Flash installed. The problem is with Firefox, because it shows the message: "Allow to run Adobe Flash?" and that is something I want to avoid.
It's not about showing alternative content to the end-user, what I want is to only try to detect Flash and if flash is not installed don't show anything, but if flash is installed, then don't show the Allow to run... message in Firefox.
Does anyone know any way to prevent this from happening with SwfObject?
Note: Just by including the next line in the html header:
<script type="text/javascript" src="swfobject.js"></script>
it triggers the Allow to Run message :S
If you think there's a better alternative to swfobject in order to solve this and it's a good multipurpose swf-handler tool, I'm all ears.
Here's an example of the message:
Thanks
hasFlash=[].some.call(navigator.plugins, function(p){return p.name=="Shockwave Flash"})
– Mood