A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Flash only Player Detection

  1. #1
    Senior Member
    Join Date
    Sep 2000
    Posts
    199

    Flash only Player Detection

    Hi there,

    Please can somebody tell me the code required to do a GetURL which only the Flash Player 6 will do?

    Thanks,

    CN.

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You mean condition the getURL to work if and only the Flash player 6 is installed?

  3. #3
    Senior Member
    Join Date
    Sep 2000
    Posts
    199
    Yes, that's it!

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Use getVersion()...

    // a simple function to get the version number...

    _root.getVersionNum = function() {
    var num = getVersion().substr(4, 1);
    return num;
    };

    // and use like so...

    if (_root.getVersionNum() < 6) {
    getURL("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash");
    } else {
    getURL("/main.htm")
    }

  5. #5
    Senior Member
    Join Date
    Sep 2000
    Posts
    199
    Thanks oldnewbie.

  6. #6
    Senior Member
    Join Date
    Sep 2000
    Posts
    199
    Oh, hang on.

    'getVersion().substr(4, 1)' will give you a blank space if the platform is UNIX.

    Look here

    C.

  7. #7
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    Check for the platform also, then!

  8. #8
    Senior Member
    Join Date
    Sep 2000
    Posts
    199
    But new one's may arise.

    What I need is some code which simply won't work in 5 and below.

    For the Flash player 5, I think this could be achieved by calling a function.

  9. #9
    Senior Member
    Join Date
    Sep 2000
    Posts
    199
    I think I got it.

    I just switched compression on.

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