PDA

View Full Version : Detecting version of Flash, and redirecting users accordingly.


leemond
09-12-2002, 09:42 AM
Can anyone tell me how to detect the version of Flash using JavaScript, and depending on the version, redirect the users to a different page.

Thanks

Leemond:confused:

JSgamer2049
05-25-2004, 04:36 PM
Can't do it with JavaScript. Not even the navigator.plugins array on Netscape offers version numbers. You'll need Java or VBScript.

liorean
05-25-2004, 04:42 PM
The easiest way of doing it, that works everywhere, is to do it from within a Flash file that in turn loads the appropriate final file.

leemond
05-26-2004, 10:05 AM
I have done it now.

Thanks for replying.

Skyzyx
05-26-2004, 06:39 PM
If you're using a modern browser (NS6+, IE5+, Opera 5+), you can use my Flash detection script (http://www.skyzyx.com/scripts/flash.php). It's what I use, and it's never failed me yet.

I make sure to offer alternate content for non-Flash enabled browsers, of course, and I do a quick sniff for document.layers first so that I don't feed it to NS 4.x.

leemond
05-26-2004, 10:05 PM
Thanks for that, I will use that in future documents.

Once again thanks.

Lee