I'd like to store the flashversion of users of a website in a database, so when they report problems with the website I can easily see which flash version they use. Is there a way to detect it with PHP or with javascript?
3
-
2See this webpage. It appears to do what you want.Travis Pessetto– Travis Pessetto2012-07-03 13:32:06 +00:00Commented Jul 3, 2012 at 13:32
-
Travis' link looks like the most simple way – or you can use this: code.google.com/p/swfobjectinsertusernamehere– insertusernamehere2012-07-03 13:36:03 +00:00Commented Jul 3, 2012 at 13:36
-
Big tutorial: adobe.com/devnet/flashplayer/articles/swfobject.htmlLukas Knuth– Lukas Knuth2012-07-03 13:54:44 +00:00Commented Jul 3, 2012 at 13:54
Add a comment
|
1 Answer
AS3 replaced AS2's patchy getVersion with the flash.system.Capabilities class. There you will find a property called version that will give you what you want. It's not in Javascript or PHP, but a small (and possibly invisible) SWF can easily send a get request to a server page to post the information to your database.
If you need the request to be done in Javascript, for some reason, it is possible (although not fluid) to have AS3 and Javascript communicate.