How to detect flash installed / enabled in a browser

A

Anees

Hi friends..

i know it may be a repeated Q.
Though i had search across i couldnt get the right solution and in
some, links were broken..

I want to check a browser when a user clicks on a link whether it
supports playing Flash files or not,

If yes it starts playing the Flash file.
or else it should pop up a screen to ask downloading flash plug in
into the system.

Please help me

Regards,
Anees
 
R

rf

Anees said:
Hi friends..

i know it may be a repeated Q.
Though i had search across i couldnt get the right solution and in
some, links were broken..

Hmmm. Googling for "detect flash installed enabled" reveals 104,000 hits,
the first of which is the Adobe flash player detection kit. I recon Adobe
would be the authority on the subject :)
 
D

David Mark

Hmmm. Googling for "detect flash installed enabled" reveals 104,000 hits,
the first of which is the Adobe flash player detection kit. I recon Adobe
would be the authority on the subject :)

Unfortunately they are not. Their detection kit is awful. Examples
posted elsewhere are typically just as bad. This issue will be
addressed in the CWR project soon.

The answer for this varies according to whether a specific version is
required and whether parameters need to be passed to the Flash movie
(older Safari browsers ignore those.) If the answer to those two
questions is no, then nested objects with a download message as the
fallback will work. The script would simply find and display the
outer object on click.
 
A

Anees

Unfortunately they are not. Their detection kit is awful. Examples
posted elsewhere are typically just as bad. This issue will be
addressed in the CWR project soon.

The answer for this varies according to whether a specific version is
required and whether parameters need to be passed to the Flash movie
(older Safari browsers ignore those.) If the answer to those two
questions is no, then nested objects with a download message as the
fallback will work. The script would simply find and display the
outer object on click.

Hi
Thanks Guys..
i just got a good solution from
http://www.adobe.com/products/flashplayer/download/detection_kit/
thanks for ur suggetions

regards
Anees
 
A

Anees

That is not even close to a good solution as it relies on browser
sniffing.

oh..coz i got flash installed with my fire fox browser... i couldnt
check how it workes when the flash is not der..!!!!

Please suggest me a good solution..

Anees
 
D

David Mark

oh..coz i got flash installed with my fire fox browser... i couldnt
check how it workes when the flash is not der..!!!!

Please suggest me a good solution..
Post a link to your page or the markup used for your Flash movie.
 
D

David Mark

http://projects.realinternetsales.com/AudraRhodes/
here i need to Load the JS Menu if Flash will not support
And also need to prompt the user to confirm the redirection into flash
download page

Forget about redirection as your users won't be interested in that.
They are going to want a menu that works without a download!

The only parameter you are passing to Flash is quality="high". You
can lose that as it is the default. You can also lose the embed tag.

Here is an example:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="300" height="120" codebase="http://fpdownload.macromedia.com/
pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" title="Movie">
<param name="movie" value="flash/testflash_streaming.swf">
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="flash/
testflash_streaming.swf" width="300" height="120" title="Movie">
<!--<![endif]-->
<ul>
<li><a href="page1.html">menu item 1</a></li>
<li><a href="page2.html">menu item 2</a></li>
<li><a href="page3.html">menu item 3</a></li>
...
</ul>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>

Use CSS to approximate the Flash rollover effects. Without getting
into a detailed discussion of progressive enhancement, a simple
solution to the "Click to Activate" issue is to document.write the
object tags from an external script file. You will then need a
noscript element that contains the menu list.

<script type="text/javascript" src="flashmenu.js"></script>
<noscript>
<ul>
<li><a href="page1.html">menu item 1</li>
<li><a href="page2.html">menu item 2</li>
<li><a href="page3.html">menu item 3</li>
...
</ul>
</noscript>

Granted, it isn't an optimal solution as your menu list will exist in
two places.

Do the same thing with your other Flash movie, but use a JPEG as the
fallback.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,169
Latest member
ArturoOlne
Top