Detecting flash

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:

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.

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

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

http://www.kirupa.com/developer/mx/detection.htm

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

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!

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

Grim