Brian,
We use the following javascript
<script language="javascript">
// Flash Version Detector v1.2.1
// documentation:
http://www.dithered.com/javascript/flash_detect/index.html
// license: http://creativecommons.org/licenses/by/1.0/
// code by Chris Nott (chris[at]dithered[dot]com)
// with VBScript code from Alastair Hamilton (now somewhat
modified)
function isDefined(property) {
return (typeof property != 'undefined');
}
var flashVersion = 0;
function getFlashVersion() {
var latestFlashVersion = 8;
var agent = navigator.userAgent.toLowerCase();
// NS3 needs flashVersion to be a local variable
if (agent.indexOf("mozilla/3") != -1 && agent.indexOf("msie")
== -1) {
flashVersion = 0;
}
// NS3+, Opera3+, IE5+ Mac (support plugin array):
check for Flash plugin in plugin array
if (navigator.plugins != null &&
navigator.plugins.length > 0) {
var flashPlugin = navigator.plugins['Shockwave
Flash'];
if (typeof flashPlugin == 'object') {
for (var i = latestFlashVersion; i >= 3;
i--) {
if (flashPlugin.description.indexOf(i +
'.') != -1) {
flashVersion = i;
break;
}
}
}
}
// IE4+ Win32: attempt to create an ActiveX object
using VBScript
else if (agent.indexOf("msie") != -1 &&
parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 &&
agent.indexOf("16bit")==-1) {
var doc = '<scr' + 'ipt language="VBScript"\> \n';
doc += 'On Error Resume Next \n';
doc += 'Dim obFlash \n';
doc += 'For i = ' + latestFlashVersion + ' To 3 Step
-1 \n';
doc += ' Set obFlash =
CreateObject("ShockwaveFlash.ShockwaveFlash." & i) \n';
doc += ' If IsObject(obFlash) Then \n';
doc += ' flashVersion = i \n';
doc += ' Exit For \n';
doc += ' End If \n';
doc += 'Next \n';
doc += '</scr' + 'ipt\> \n';
document.write(doc);
}
// WebTV 2.5 supports flash 3
else if (agent.indexOf("webtv/2.5") != -1) flashVersion
= 3;
// older WebTV supports flash 2
else if (agent.indexOf("webtv") != -1) flashVersion = 2;
// Can't detect in all other cases
else {
flashVersion = flashVersion_DONTKNOW;
}
return flashVersion;
}
flashVersion_DONTKNOW = -1;
</script>
Hope this helps.
Warm Regards,
Sameer S. Kekade.
QUATRO FOUR RETAIL
"The right connections for your business"
Tel. direct +61 2 9370 2775
Tel. direct +61 2 9370 1062
Fax direct +61 2 9370 1200
Mobile 0409 156 038, 0411 566 650
[EMAIL PROTECTED]
www.quatro.com.au
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of KNOTT,
Brian
Sent: Wednesday, 15 September 2004 11:56 AM
To: CFAussie Mailing List
Subject: [cfaussie] Flash version detection
Does anyone has a CF page of CFC that detects what version of flash a
browser is running.
Brian Knott
MIS Analyst
Group Accounting & MIS, Accounting and Tax
(07)383 55977
Suncorp Pty Ltd
------------------------------------------------------------------------
-----------
This e-mail is sent by Suncorp-Metway Limited ABN 66 010 831 722 or one
of its related entities ("Suncorp").
Suncorp may be contacted at Level 18, 36 Wickham Terrace, Brisbane or on
13 11 55 or at suncorp.com.au.
The content of this e-mail is the view of the sender or stated author
and does not necessarily reflect the view of Suncorp. The content,
including attachments, is a confidential communication between Suncorp
and the intended recipient. If you are not the intended recipient, any
use, interference with, disclosure or copying of this e-mail, including
attachments, is unauthorised and expressly prohibited. If you have
received this e-mail in error please contact the sender immediately and
delete the e-mail and any attachments from your system.
If this e-mail constitutes a commercial message of a type that you no
longer wish to receive please reply to this e-mail by typing Unsubscribe
in the subject line.
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
[EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/