I'm now have a request to detect flash player version in client and if their version couldn't play so I will display something like "if you see this line is mean you need the flash player up to date to see this file".
4 Answers
If you use swfobject to display your Flash (and you should), you can specify a minimum required version and an error message and it will handle detection for you.
2 Comments
gacon
This is the first time I'm using this so can you show me something helful, please. I need to display video file embed from youtube or from another url in firefox is done but not in IE. And I realize that because it's not has the lastest version to display this.
David
In that case you'll want to do some kind of Javascript browser detection (w3schools.com/js/js_browser.asp) I can't give a specific example of using that for your purpose though. You could also do this detection on the server side. Generally speaking, displaying different content to different browsers is a bad idea. Youtube embeds should work in all browsers.
Adobe Flash Detection Kit should do the trick for you. Are you looking to do this with Flash (ActionScript) or in JavaScript?
1 Comment
gacon
I'm using javascript, and now I use detection kit it's worked! Thank you! Thank you very much!
Using JavaScript to detect Flash Player http://www.adobe.com/support/flash/how/shock/javaplugs/
Flash Player Detection Kit http://www.adobe.com/products/flashplayer/download/detection_kit/