# Please Check my Flash Detection

**URL:** https://forum.kirupa.com/t/please-check-my-flash-detection/128195
**Category:** Uncategorized
**Created:** [November 10, 2004, 9:25am UTC](https://forum.kirupa.com/t/please-check-my-flash-detection/128195 "2004-11-10T09:25:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![as\_clark20](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@as\_clark20](https://forum.kirupa.com/u/as_clark20)
#### Post date: [November 10, 2004, 9:25am UTC](https://forum.kirupa.com/t/please-check-my-flash-detection/128195/1 "2004-11-10T09:25:27Z")

</div>

Ok please check my code. I’ve been working on a more efficient flash detection script. I’ve got the original code on top, then my version below. I want to know if what I’ve coded is ok. I hope it will.

Please get back to me and let me know if I’ve been a clever boy or a moron!

And yes I do know I’ve left the \< \> arrows where it calls and ends the javascript tags, it doesn’t display right if you leave em in for some reason.

Thanks.  
Adam.

[SIZE=2]

```auto

script language="javascript" type="text/javascript" src="scripts/flash.js"
			function getFlashVersion() { return null; };
			/script
script language="javascript" type="text/javascript"
			var requiredVersion = 6;
			var flashVersion = getFlashVersion();
			
			if (flashVersion >= requiredVersion) {
				
			}
			else if (flashVersion < requiredVersion) {
				window.location.replace("http://www.brakeparts.co.uk/noflash.html");
			}
			else if (flashVersion == 0) {
				window.location.replace("http://www.brakeparts.co.uk/noflash.html");
			}
			else if (flashVersion == flashVersion_DONTKNOW || flashVersion == null) {
				window.location.replace("http://www.brakeparts.co.uk/noflash.html");
} 
/script

```

This one is MY version…

```auto

script language="javascript" type="text/javascript" src="scripts/flash.js"
			function getFlashVersion() { return null; };
			/script
script language="javascript" type="text/javascript"
			var requiredVersion = 7;
			var flashVersion = getFlashVersion();
			
			if (flashVersion == 0 || flashVersion < requiredVersion || flashVersion == flashVersion_DONTKNOW || flashVersion == null) {
				window.location.replace("http://www.brakeparts.co.uk/noflash.html");
} 
/script

```

[/SIZE]
