A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash Player Detection

Hybrid View

  1. #1
    Senior Member
    Join Date
    Apr 2001
    Location
    Sydney, Australia
    Posts
    271

    Angry

    G'Day all,

    Just wondering how to detect the flash 6 player is installed on the client side. Is there an easy way to do this? Should I go back to flash school???

  2. #2
    Senior Member
    Join Date
    Aug 2002
    Posts
    191
    check out this tutorial
    Flash Detection Tutorial

  3. #3
    forever Newbie brunodario's Avatar
    Join Date
    May 2002
    Location
    Brasil
    Posts
    256

    The MOST simple way!

    Ye...the old good fashion Javascript DOESN'T works on every BROWSERS,
    But this...this is such a good idea that i had never used javascript to detect FLASH. (i got this idea from a tut of FK..can't remembeer what)

    How?
    Two steps -
    ONE
    Make the smallest size of a movie on flash MX (18 px 18 px i guess) and put this simple frame action -
    Code:
    getURL("main.htm", "_self");
    or whatever .htm to take you to your visitors to your FLASH site. Publish it with the version you wish to detect (In your case, Flash 6)


    TWO

    The HTML file that will hold this litlle checker (the one u made on step ONE) has this code on the head
    Code:
    META HTTP-EQUIV="Refresh" CONTENT="5; URL= noflash.html"
    Obs: I don't know how to put the < tags on FK board... if i put it the code disapear! So remember to put < tages before the word META and the close tag after the noflash.html"

    With the 5 meaning the time it gets before going to the "noflash.html" file.

    So...i think you've already realized how this thing work. If the visitor PC load the Flash 6 swf you create this one takes it to the site (note that it's very, very hard that a PC can't load a 18px 18px EMPTY movie in 5 seconds).

    If the file isn't loaded (the guy don't have Flash Player 6), the content it's refreshed in 5 seconds (or whatever..change it for your purposes) to the page with the
    "Sorry no flash player 6 detected blablabla"
    Regards!

    P.s:My god... i love this Flash Detection..it's such a good idea.



  4. #4
    Senior Member
    Join Date
    Oct 2000
    Posts
    381

    good idea..

    ... i have used it in all my sites, but... Will it work if you publish with MX (as version 6) and you have the 5 plug-in? I´m afraid it would go anyway to "main.htm" because flash 5 "understand" the script. To avoid it i have used a special code which only can be understood by MX, a function with "updateAfterEvent". I had this problem with flash 5 and flash 4, i have a detector with a loop and "this.gotoAndPlay(frame)" because "this" can not run under flash 4.

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