Jump to content

Flash Detection Code

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
newphpcoder

newphpcoder

    Programming Professional

  • Members
  • PipPipPipPipPipPip
  • 477 posts
Good day!

I have an intranet website that was in the server and it has a flash. My problem is the client computer has no flash installer; I want that they can access the flash.exe in the server so they can install it to their computer. I read some forum that it could happen using JavaScript detection code. Honestly I have no idea about it.
Thank you

#2
newphpcoder

newphpcoder

    Programming Professional

  • Members
  • PipPipPipPipPipPip
  • 477 posts
Good day!
I run my intranet website in IE8 without internet connection. I uninstalled my Adobe Flash Player Installer 10.1 which is located in my documents to test if I used the swfobject for the auto install of flash player. As I’ve said on my past thread that I want to happen is the client got a popup message to tell them that they need to install flash player and follow the link where the installer found. Honestly, I did not totally understand what is the use of swfobject why I need it to solve my problems?
Here is my code:

<script type="text/javascript" src="swfobject.js"></script>


<div id="Products_Gallery">

  <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="450" height="375" id="Products_Gallery">

    <param name="movie" value="PRODUCTS_GALLERY.swf?variable=varvalue" />

    <param name="quality" value="high" />

	<param name="wmode" value="transparent"/>

    <embed src="PRODUCTS_GALLERY.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="375" wmode="transparent"></embed>

  </object>

</div>

<script type="text/javascript">

	var so = new SWFObject("PRODUCTS_GALLERY.swf", "Products_Gallery", "450", "375");

	so.addVariable("variable", "varvalue");

	so.write("Products_Gallery");

</script>

And I encountered error:
‘SWFObject’ is undefined.