Home of Scripts 'n Styles for WordPress, Backstage2D and History Keeper!

A problem with Flash Player 10 version number and javascript detection

As you may have heard, Adobe recently released the first beta of Flash Player 10. It looks like unFocus.FlashPlayerInfo has been checking for single version digits, rather than multiple:

_versionRaw.match(/Shockwave Flash (\d)\.(\d)/);

The fix is easy enough (I could swear I actually fixed this at one point too):

_versionRaw.match(/Shockwave Flash (\d+)\.(\d+)/);

This problem doesn’t seem to be limited to just the unFocus Flash Detection script. I’ve seen other claims of failed Flash detection in other corners as well. I’d bet most of the problems are with the plugin detection scripts (Mozilla Firefox, Opera, Safari, etc.) and not with the ActiveX detection scripts (Internet Explorer), since most of the plugin detection scripts out there are using string parsing techniques, and have probably not tested with multiple digit Flash versions (since there haven’t been any until now).

I’ll see about getting a release out soon. If anyone needs any help updating anything, feel free to leave a comment, or email me.

Related

Author: Kevin Newman

I'm the lead developer at adcSTUDIO located in Kingston NY (in Livingston Manor NY before that). I do all kinds of things there, from robust server side work to the much more enjoyable client side development in HTML/JavaScript/Flash (RIAs, HTML5, etc.) and all the other tech-buzz-phrases of the moment.
My brother came up with the idea for unFocus.com which was originally meant be a place to discuss and blog about whatever topics we both found interesting, from politics to technology, to art and design. Time was scarce, and I need a place to host History Keeper, and unFocus Projects - a sub focus of unfocus.com was born, and eventually migrated to the font page.
Oh, and I'm on Twitter (@Touvan) and Google+.
View all posts by Kevin Newman

4 thoughts on “A problem with Flash Player 10 version number and javascript detection”

Thank you for solving this. I had a client complaining that all the flash galleries I made from photoshop were broken and I didn’t believe him until I upgraded my own flash and saw the same thing (as above) with my own two eyes. Arg.

I have been searching and searching for the solution to this Flash 10 detection and found this. I too used the PS CS3 flash gallery and am getting this detection problem… i tried to find the line of code you posted above but could not find it anywhere in the .js file to replace it. Any help would be much appreciated!!