Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Detect Flash Player 8 on users computer and display message if player is installed, link to Flash Player if not.

Posted on 2006-04-05
Medium Priority
Last Modified: 2010-04-03
I would like to be able to detect if a user viewing my site has Flash Player 8 installed. If they do not have it then I would like to display a message and link to get the player. If they do have it then I would just like it to say FLash PLayer 8 detected and provide a link to the site. Any thoughts on how I can accomplish this. I already have some javascript that I got from somewhere that detects if Flash is installed but not verison 8(or higher whenever available) so some people still can't view it because they have verison 7 or earlier.  I would like to use the code I have and if anyone can tweak it so that it works for what I need that would be great. Here is the code I am currently using:

<script language="JavaScript" type="text/javascript">
 var useFlash = navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin;
// -->

<script language="VBScript" type="text/vbscript">
 On error resume next
 useFlash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))
// -->

<script language="JavaScript" type="text/javascript">
if ( useFlash )
   document.write("Flash Player Detected!");
   document.write("Flash Not Detected! Please <a href=macromedia.com>download</a> the latest plugin.");
// -->

Question by:apriigem
LVL 19

Accepted Solution

Montoya earned 200 total points
ID: 16380745
All you really have to do is select the Publish Settings and check the Detect version of Flash box.. it will also let you pick the version. Voila!



Author Comment

ID: 16386540
But i have a plain html page before you enter the site that has the flash, will this work for that page?

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.
Suggested Courses

580 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question