What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Reply to thread

I think the below function will be useful..


function getFlashVersion(){

  // ie

  try {

    try {

      // avoid fp6 minor version lookup issues

      // see: deconcept » GetVariable/SetVariable crashes Internet Explorer with Flash Player 6

      var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');

      try { axo.AllowScriptAccess = 'always'; }

      catch(e) { return '6,0,0'; }

    } catch(e) {}

    return new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1];

  // other browsers

  } catch(e) {

    try {

      if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){

        return (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1];

      }

    } catch(e) {}

  }

  return '0,0,0';

}

 

var version = getFlashVersion().split(',').shift();

if(version < 10){

  alert("Lower than 10");

}else{

  alert("10 or higher");

}


What is our favorite program/app? (Hint - it begins and ends with the letter P)
Back
Top