Thread: Flash Detection

    #1
  1. No Profile Picture
    Sencha Developer
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2001
    Location
    STL
    Posts
    547
    Rep Power
    0

    Flash Detection


    Is there a way I can detect the version of Flash a user has using PHP or is it javascript or any language?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed God 1st Plane (5500 - 5999 posts)

    Join Date
    Oct 2000
    Location
    Back in the real world.
    Posts
    5,966
    Rep Power
    190
    you can. and you can not. it depends on the browser and the userīs settings.

    www.macromedia.com has a script for that, but i found better ones on the web.
    they work like this:
    - check browser AND OS (eg. on IE/MacOS there is no VBScript! and for MacOS, Netscape and Flash<=5 the FSCommand interface does not work - and so on)
    -- IE/Windows: create object using vbscript, if it fails there is no flash
    -- IE/Mac - output the flash tags with auto-download option.
    -- NS: check the navigator.plugins array for occurences of "flash"
    -- if none of these succeeds, output a 1x1 flash movie that only forwards the user to another page (the entry to the pages with flash) and use <meta refresh> to load the non-flash page after some seconds.

    you can see, if javascript is disabled, you cannot detect flash. the only reliable way is to let the user choose...
    this is why i donīt use flash for web-pages but only decoration and nice menus
    (you can supply <noscript> and <noembed> tags to display another menu instead if there is no flash, but i donīt consider this "plugin detection")

    and the same deal with MF QuickTime!

IMN logo majestic logo threadwatch logo seochat tools logo