-
Senior Member
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.
-
-
Senior Member
Originally Posted by regbolD
no, i need the version string ... no download link
-
Senior Member
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. -
-
Senior Member
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.
-
Senior Member
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. -
-
Senior Member
i know, i know, i try to explain that to my client ...
Originally Posted by cancerinform
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|