Hi there,

I'm trying to implement the Flash 6 detector behaviour supplied by the good people at Macromedia. However I have come across a small problem. I would like it to detect whether Flash is present or not, then if it is present to open a new window (using window.open command) and to load the flash page into that. If it is not present then to go to my noflash.htm without opening any new windows.

Heres the code:
[code]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script src="Dispatcher.js"></script>
<title>Welcome to wakeyvegas.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
window.open("http://www.wakeyvegas.com/mainpage.htm", "wakey", "width=880,height=700,scrollbars=yes")





function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

//-->
</script>
<LINK REL=stylesheet HREF="http://www.wakeyvegas.com/wakey.css" TYPE="text/css">
<SCRIPT LANGUAGE="VBScript">
' Check for the Flash ActiveX control.
'
' This script will be ignored by browsers that do not support
' VBScript (although Microsoft Internet Explorer will warn the
' user that a script in an unsupported language has been
' encountered if the user has checked "Show unsupported scripting
' language errors" in Preferences->Web Browser->Web Content).
'
' This technique due to Jeff Brown and Rafael M. Muñoz of
' Microsoft Corporation. Version testing adapted from Macromedia
' Flash Technical Note #12853.

Private i, x

On Error Resume Next

MM_FlashControlInstalled = False

For i = 6 To 1 Step -1
Set x = CreateObject("ShockwaveFlash.ShockwaveFlash." & i)

MM_FlashControlInstalled = IsObject(x)

If MM_FlashControlInstalled Then

MM_FlashControlVersion = CStr(i)
Exit For
End If
Next
</SCRIPT>
<script language="JavaScript">
<!--

function MM_executeFlashDispatcher(){
var args = MM_executeFlashDispatcher.arguments;
MM_FlashDispatch(args[0],args[1],args[2],args[3],args[4],args[5],args[6],args[7],args[8]);

}
//-->
</script>
</head>

<body bgcolor="#000000" text="#CCCCCC" onLoad="MM_executeFlashDispatcher('http://www.wakeyvegas.com/mainpage.htm','6.0',true,'http://www.wakeyvegas.com/noflash.htm',false,'http://www.wakeyvegas.com/noflash.htm','http://www.wakeyvegas.com/noflash.htm',false,false)">
<div id="Layer1" style="position:absolute; width:200px; height:115px; z-index:1; left: 253px; top: 186px;"><img src="tveyes.gif" width="300" height="141" border="0"></div>

<div id="Layer2" style="position:absolute; width:204px; height:17px; z-index:2; left: 253px; top: 178px;">
<h1><font face="hooge 05_53, Arial, Courier New">welcome to wakeyvegas.com</font></h1>
</div>
<div id="Layer3" style="position:absolute; width:248px; height:15px; z-index:3; left: 253px; top: 296px;">
<h1><font face="hooge 05_53, Arial, Courier New">system requirements </font></h1>
</div>
<div id="Layer4" style="position:absolute; width:200px; height:16px; z-index:4; left: 304px; top: 309px;">
<h1><font face="hooge 05_53, Arial, Courier New">Flash 6 </font><font face="hooge 05_53">player</font></h1>
</div>
<div id="Layer5" style="position:absolute; width:200px; height:115px; z-index:5; left: 306px; top: 322px;">
<h1><font face="hooge 05_53">IE5 or higher</font></h1>
</div>
<div id="Layer6" style="position:absolute; width:200px; height:115px; z-index:6; left: 306px; top: 335px;">
<h1><font face="hooge 05_53, Arial, Courier New">javascript enabled</font></h1>
</div>
</body>
</html>


Thanks for any help
Graeme