Posted in Development | Posted on 02-21-2006 | 3,517 views
Jen asks:
Do you know of a good flash detection script available, for use with flash forms? Most of the ones we have tried only detect when flash player is not installed at all. If the client system has an old version of flash there isn't an error or prompt to update - just a blank screen.
I can think of two excellent resources. The first is straight from Adobe: Flash Player Detection Kit. I've used this on a project before and it works like a charm. If you just need to check Flash players, I'd use this.
If you want to do more advanced checking, you want to consider Browserhawk. It can check everything. Seriously. It can probably tell you what the coder had for breakfast when he or she compiled your browser. It isn't cheap, but it works like a charm.


http://blog.deconcept.com/flashobject/
Leif
I recently found very useful the fact that it supports the new ExpressInstall feature in conjnction with the different codec available in f8 and f7.
Detect Flash8 -> fall to flash7 with prompt that you "could" install 8 very easy -> fall to 6.79 (the smallest ver that can handel XPI I think) with prompt that you have to install -> fall to "noflash.html" page.
And all this with very little coding :)
Is it possible?
dickbob
Create a dummy .swf with a getURL calling your 'cfform format="flash"'.
http://www.bobbyvandersluis.com/ufo/
Thanks again - Jen
dickbob
Download the FlashObject package. I placed the entire folder to our beta site. I made a copy of the flashobject.html file named "foo.cfm" to use as a starting place.
I replaced the description section ("This Flash movie was embedded using...") with our cfform block. I then surrounded that form with a div element:
div id="myform"
In the header I added a javascript called hideonload:
document.getElementById('myform').style.display='none';
And invoked the function in the body tag:
body onLoad="hideonload()"
Then I changed the second parameter of the FlashObject call to "myform" (to match the div associated with the cfform block).
Now I am just working to create a simple Flash movie (with our company logo) to replace the stock swf file. When that is done, it is just a matter of changing the first parameter of the FlashObject call to match that file name, and adjusting the object size if necessary (by changing the third and fourth parameters.
The FlashObject call looks something like this:
var fo = new FlashObject("<em>name of swf file</em>", "<em>name of div element to unhide if detection is successful</em>", "<em>flash object width</em>", "<em>flash object height</em>", "<em>flash version</em>", "<em>flash object background color</em>");
Hope that helps!
~Jen
dickbob
[Add Comment] [Subscribe to Comments]