PDA

View Full Version : Flash detection works on one server, not on another


roel018
07-03-2006, 11:05 AM
dear folks,

Hope someone can help me out. i have a flash detection method which uses SWFObject and actionscript based flash detection. Problem is, the whole bunch only works on my Server 1, but not on my Server 2.. Both servers are Windows 2003 with IIS 6. Flash movies normally play on both servers. I have testen on another server (third) and it works on that one as well.. Just not on Server 2..

The problem occurs when I don't have a version installed on the clients system suitable for the movie: then nothing happends - while it should bring up an Install Flash Plugin dialogbox.. On Server 1 and 3 this works, on Server 2, nothing happends..

This is the site I'm talking about:
http://ontwikkel4.inconel.nl/test/index1.htm



This is my flash_detection.swf script:
// Action script...

// [Action in Frame 1]
if ($version == "")
{
getURL(altContentURL, "_self");
} // end if
i = 1;
playerOS = "";
while (substring($version, i, 1) != " ")
{
playerOS = playerOS + substring($version, i, 1);
i = i + 1;
} // end while
playerVersion = "";
for (i = i + 1; substring($version, i, 1) != ","; i = i + 1)
{
playerVersion = playerVersion + substring($version, i, 1);
} // end of for
playerMajorRevision = "";
for (i = i + 1; substring($version, i, 1) != ","; i = i + 1)
{
playerMajorRevision = playerMajorRevision + substring($version, i, 1);
} // end of for
playerMinorRevision = "";
for (i = i + 1; substring($version, i, 1) != ","; i = i + 1)
{
playerMinorRevision = playerMinorRevision + substring($version, i, 1);
} // end of for
if (allowFlashAutoInstall == "true")
{
allowFlashAutoInstall == "true";
} // end if
if (playerOS == "WIN")
{
getURL(flashContentURL, "_self");
}
else if (playerVersion < contentVersion)
{
getURL(altContentURL, "_self");
}
else if (contentVersion < playerVersion)
{
getURL(flashContentURL, "_self");
}
else
{
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerMajorRevision < contentMajorRevision)
{
getURL(altContentURL, "_self");
}
else
{
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerMajorRevision == contentMajorRevision)
{
playerMajorRevision == contentMajorRevision;
} // end if
if (playerMinorRevision < contentMinorRevision)
{
getURL(altContentURL, "_self");
}
else
{
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerVersion == contentVersion)
{
playerVersion == contentVersion;
} // end if
if (playerMajorRevision == contentMajorRevision)
{
playerMajorRevision == contentMajorRevision;
} // end if
if (playerMinorRevision >= contentMinorRevision)
{
getURL(flashContentURL, "_self");
} // end if
} // end if
} // end if
} // end if


This is the swf implementation code (note: using SWFObject gives the same results...):

<script src="AC_RunActiveContent.js" type="text/javascript"></script>
<script type="text/javascript">
AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0','width','1','height', '1','allowScriptAccess','always','swLiveConnect',' true','id','check_version','name','check_version', 'src','flash_detection?flashContentURL=http://www.inconel.nl/home.4110.0.html&altContentURL=http://www.inconel.nl/home.4109.0.html&contentVersion=8&contentMajorRevision=0&ContentMinorRevision=0&allowFlashAutoInstall=true','quality','high','plug inspage','http://www.macromedia.com/go/getflashplayer','movie','flash_detection?flashCont entURL=http://www.inconel.nl/home.4110.0.html&altContentURL=http://www.inconel.nl/home.4109.0.html&contentVersion=8&contentMajorRevision=0&ContentMinorRevision=0&allowFlashAutoInstall=true'); //end AC code
</script>


Hope someone can help me out !!!