Monday, December 22, 2008

Bug in Flash player detectionkit provided by adobe (Flash player detection not working in windows/ie7)

Adobe provided flash player detection kit has a bug in client-site detection

file AC_OETags.js

// Flash Player Version Detection - Rev 1.6
// Detect Client Browser type
// Copyright(c) 2005-2006 Adobe Macromedia Software, LLC. All rights reserved.
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

You need to change

var isWin = (navigator.platform.toLowerCase().indexOf("win") != -1) ? true : false;

This bug also in adobe flex builder 2 AC_OETags.js file.

hope this help.