A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: how to get the version string of the current flash player version

  1. #1
    Senior Member fantasio's Avatar
    Join Date
    May 2000
    Location
    at the progress bar
    Posts
    409

    how to get the version string of the current flash player version

    hi there,

    a client asked me to incorporate a flash version check in a flash application i made for him.
    it should read something like:

    "you have flash player 10.x.x.x.x.x.x.x
    the current version is 10.1.x.x.x.x.x.x"

    the user veriosn is easy to get with Capabilities.version
    but is there an url on adobe's site to get the string of the current downloadable version from?

    thanks!
    Last edited by fantasio; 09-21-2010 at 05:28 PM.

  2. #2

  3. #3
    Senior Member fantasio's Avatar
    Join Date
    May 2000
    Location
    at the progress bar
    Posts
    409
    Quote Originally Posted by regbolD View Post
    no, i need the version string ... no download link

  4. #4
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    One possibility is to use the swfobject and flashvars.

    PHP Code:
    <script type="text/javascript" src="swfobject.js"></script>
            <
    script type="text/javascript">
            var 
    playerVersion swfobject.getFlashPlayerVersion();
            var 
    playVersion playerVersion.major "." playerVersion.minor "." playerVersion.release;
            var 
    flashvars = {};
            
    flashvars.myVar playVersion;
            
    swfobject.embedSWF("test.swf""myId""550""400""10.0.0""expressInstall.swf",flashvars);
            </
    script
    and inside flash

    var myVar:String = root.loaderInfo.parameters.myVar;

    Another possibility is this:

    trace(Capabilities.version);
    Last edited by cancerinform; 09-22-2010 at 04:21 AM.
    - The right of the People to create Flash movies shall not be infringed. -

  5. #5
    Senior Member fantasio's Avatar
    Join Date
    May 2000
    Location
    at the progress bar
    Posts
    409
    ermm, i think i did not make myself clear enough, sorry for that.
    what i meant:
    in flash i check the version with
    Code:
    Capabilities.version
    i find the operating system with
    Code:
    Capabilities.version.split(" ")[0]
    now i would like to send a request to a server to check which version is the current one for this operating system.
    if the returned number would be higher than the one i checked i would show a message.

    thanks.

  6. #6
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    As far as I know that does not exist unless you go directly to the Adobe site, where you have a download link. You can make your own little list on your server and update the list regularly. I don't see any necessity for that, unless you encounter a website requiring a newer version. But then the user would be asked to update.
    - The right of the People to create Flash movies shall not be infringed. -

  7. #7
    Senior Member fantasio's Avatar
    Join Date
    May 2000
    Location
    at the progress bar
    Posts
    409
    i know, i know, i try to explain that to my client ...
    Quote Originally Posted by cancerinform View Post
    As far as I know that does not exist unless you go directly to the Adobe site, where you have a download link. You can make your own little list on your server and update the list regularly. I don't see any necessity for that, unless you encounter a website requiring a newer version. But then the user would be asked to update.

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