A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash Player 5 detection check

  1. #1
    Member
    Join Date
    Mar 2000
    Location
    Madrid, Spain
    Posts
    51
    Hi all .. I need a quick response on this ...

    Would this script detect Flash Player 5 and do things accordingly?

    <SCRIPT LANGUAGE="JavaScript">
    <!--

    //Look for a version of Internet Explorer that supports ActiveX (i.e., one that's
    //running on a platform other than Mac or Windows 3.1) or a browser that supports
    //the plugin property of the navigator object and that has Flash Player 4.0 or 5.0
    //installed.

    if ((navigator.appName == "Microsoft Internet Explorer" &&
    navigator.appVersion.indexOf("Mac") == -1 &&
    navigator.appVersion.indexOf("3.1") == -1) ||
    navigator.plugins["Shockwave Flash 4.0"] || navigator.plugins["Shockwave Flash 5.0"]){
    window.location='home.htm';
    }
    else {
    window.location='home2.htm';
    }

    // -->
    </SCRIPT>

    It is supposed to work for Flash Player 4, but .... ¿?¿?

    Thanx in advance

  2. #2
    FK Times - Editor in Chief
    My Good Little Birdie

    Join Date
    Sep 2000
    Posts
    692

    resolved

    What I believe (and I'm no javascipt expert or anything) that this script does is send flash 4 users to home.htm and flash 5 users to home2.htm.

  3. #3
    Member
    Join Date
    Mar 2000
    Location
    Madrid, Spain
    Posts
    51
    hi UpNorth ..

    no, not really. What the script tries to do is check whether you are running an automaticlly upgradable Internet Explorer, OR, if you have a browser with the property 'Shockwave Flash 4.0' OR 'Shockwave Flash 5.0' and shows 'home.htm .... and if you have other versions of the plugin or none, you are redirected to a secondary page, called home2.htm

    It worked fine detecting Flash 4 in your browser, but it doesn't detect Flash 5, and it seems to me that, the plugin name is not 'shockwave Flash 5.0' anymore .. so the script is useless ..

    I have found a working one at macromedia.com, at http://www.macromedia.com/support/fl...oyment_readme/ which solves the problems related to flash publishing, but it uses Visual Basic scripting, which my client doesn't accept.

    So i'm still in the same problem .. what should i do?

    regards
    TiMuN

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center