# Detecting flash

**URL:** <https://forum.kirupa.com/t/detecting-flash/16652>\
**Category:** flash\
**Created:** [March 27, 2003, 2:57am UTC](https://forum.kirupa.com/t/detecting-flash/16652 "2003-03-27T02:57:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![joan03](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@joan03](https://forum.kirupa.com/u/joan03)\
**Post date:** [March 27, 2003, 2:57am UTC](https://forum.kirupa.com/t/detecting-flash/16652/1 "2003-03-27T02:57:45Z")

</div>

Hi,  
would like to know is there a way where i can check, when user enter my site … it would check whether is flash installed, if not installed will prompt the user to install it, then display my flash animation. But if user click NO, then it will display my animated GIF file. I would wan all this to be done in a single html page only. Which mean i do not wan to have a flash.htm and non-flash.htm.  
Can this be done? :q:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 3:00am UTC](https://forum.kirupa.com/t/detecting-flash/16652/2 "2003-03-27T03:00:52Z")

</div>

if you check in the downloads area of Macromedia (exchange), there is a flash detector. It is also part of the development kit and there may even be an example here… somewhere.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 3:16am UTC](https://forum.kirupa.com/t/detecting-flash/16652/3 "2003-03-27T03:16:12Z")

</div>

Erm … sorry, could u explain to me further?  
Thanx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 7:55am UTC](https://forum.kirupa.com/t/detecting-flash/16652/4 "2003-03-27T07:55:43Z")

</div>

HI …  
this is what i code in my JavaScript session

if (navigator.mimeTypes && navigator.mimeType[“application/Shockwave Flash Object”])  
{  
i would put in my flash.swf file  
}  
else  
{  
i would insert a gif file  
}

But seems it is not entering the IF statement.  
Irregardless whether i have Shockwave flash installed or not, it will bring me to the else condition.  
Was wondering, is the condition in the IF statement valid?  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 27, 2003, 8:35am UTC](https://forum.kirupa.com/t/detecting-flash/16652/5 "2003-03-27T08:35:48Z")

</div>

[http://www.kirupa.com/developer/mx/detection.htm](http://www.kirupa.com/developer/mx/detection.htm)

This is the same that TheOne is talking about.  
(-:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:33am UTC](https://forum.kirupa.com/t/detecting-flash/16652/6 "2003-03-28T03:33:40Z")

</div>

Hi,  
Thanx for the link.  
It is very helpful. It has manage to load the animated gift if the shockwave flash player is not found.  
But one thing i realise, navigator.plugins will always return null.  
Therefore, it does not enter into the 1st IF condition.  
If i am not wrong, IE does not keeps information of the plugins installed.  
Would like to know is it possible to do it in this way.  
As you know, whenever u log in to a page containing flash, it will actually auto pop up a window to ask u to install the plugin.  
But when i use the script for Images and Animation provided in the link you provided, it does not prompt the user to install, instead it goes straight to the animated gift.  
So is it possible to prompt the user to install 1st, if the user click “NO” then it will display the Animated gift.  
Really appreciate for quick respond as this is urgent.  
Thanks Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 1:06pm UTC](https://forum.kirupa.com/t/detecting-flash/16652/7 "2003-03-28T13:06:57Z")

</div>

because you have to create a webpage where it states that the user must download the plugin in order to proceed like this heres an example [http://www.bmv-interactive.com/no\_flash.htm](http://www.bmv-interactive.com/no_flash.htm)

Grim
