+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Power User
    Join Date
    Jan 2005
    Posts
    223
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to Check the FlashPlayer Version using JavaScript

    I'm able to detect if the flash player for IE is installed or not but how to check for version 7 ? using javascript or vbscript? Thanx
    [img width=450 height=120]http://img132.imageshack.us/img132/6581/fearsv9.gif[/img]

  2. #2
    Guru
    Join Date
    Feb 2002
    Location
    Kelowna, BC Canada
    Posts
    2,256
    Thanks
    1
    Thanked 4 Times in 4 Posts

    How to Check the FlashPlayer Version using JavaScript

    Courtesy of Google: http://www.quirksmode.org/js/flash.html

    :B

    If that doesn't suit your fancy, do a search using the terms you spoke of: "detecting flash version using javascript" ;)

  3. #3
    Power User
    Join Date
    Jan 2005
    Posts
    223
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to Check the FlashPlayer Version using JavaScript

    Keeper I could kiss you for the search :P I tried google b4 , but you found gr8 source. Thanx 4 that. ;\
    [img width=450 height=120]http://img132.imageshack.us/img132/6581/fearsv9.gif[/img]

  4. #4
    Guru
    Join Date
    Feb 2002
    Location
    Kelowna, BC Canada
    Posts
    2,256
    Thanks
    1
    Thanked 4 Times in 4 Posts

    How to Check the FlashPlayer Version using JavaScript

    NP

  5. #5
    Newbie
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    hese files are used to enable detection of the end user's Flash Player version, initate a player-based installation, and return the user to your site to view your content.

    * playerProductInstall.html
    Contains the JavaScript logic for completing the Express Install process
    * AC_OETags.jsWhole Life Insurance
    JavaScript source file; used by ClientSideDetection.html to detect and embed the Flash Player
    * example.swf
    Flash movie to test your implementation of the Express Install process
    * playerProductInstall.swfEvidence Discovery
    Contains the ActionScript logic used to initiate the Express Install process
    * playerProductInstall.fla
    Calls on the ActionScript files of the same name to complete the Express Install process
    * playerProductInstall.as
    Contains the logic for completing the Express Install process
    * playerProductInstallCallback.as
    Contains the callback function dictating what happens when end user does not install the new Flash Player through the Express Install process

  6. #6
    Newbie
    Join Date
    Nov 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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').Get Variable('$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");
    }

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Powered by vBulletin® Version 4.1.9
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by vBSEO 3.6.0
Copyright 2011 Photoshop Gurus Forum. All rights reserved.
All times are GMT -5. The time now is 06:13 PM.
vBulletin Skins