Flash Detection and Alternative Content

July 27, 2010

Although Flash is reaching more and more devices every day and expects to be on 50% of all mobile devices by 2012, it is always a good idea to have alternative content for older devices that can not support Flash, or users that choose to disable it.
Here are a few quick ways for web designers/developers to display alternative content for devices without Flash.

1) Embed Code


	

Alternative content

2) SWFObject

http://code.google.com/p/swfobject/
You can display the alternative content in the <div> that you are writting the Flash object to. If you wish to do other things (redirects or content changes) you can detect if Flash is installed with the JavaScript below.

     var flashSupported = document.getElementById('myContent');
     // if flash is not supported then go to a HTML page
     if( flashSupported.innerHTML.indexOf('embed') == -1 )
          document.location.href="noFlash.html";

3) Flash Player Detection Kit

The Flash® Player Detection Kit helps developers implement robust player detection for a variety of deployment environments by providing a set of templates and techniques to successfully detect the version of Flash Player installed on a user’s computer, and, if needed, to then install the latest version of Flash Player. The kit also includes a detailed explanation and sample files for implementing the new, player-based Flash Player Express Install experience.
http://www.adobe.com/products/flashplayer/download/detection_kit/

4) User Agent

If you have some programming knowledge you can check the User Agent sent from the browser. If you know the agents that do not have Flash support or you would like to show alternative content this is easily done.

List of User Agents

http://www.user-agents.org/

C#

Request.UserAgent

PHP

$_SERVER['HTTP_USER_AGENT']

JavaScript

http://www.quirksmode.org/js/detect.html
Posted by Beau Durrant

Never miss a post.

Email Newsletter

* indicates required
V Strategies | Video Production

Privacy Policy
Copyright © V Strategies 2020

Calgary Office
1918 – 9 Avenue SE
Calgary, AB
T2G 0V2
1+ 403 229 2511
Get Directions

Think Visual BlogOur Blog
Contact Us Now
linkedin-squaretwitteryoutube-playinstagramfacebook-officialvimeo