Problem is my file has a preloader on the 3rd frame (because the first 2 frames are the detection code) and my swf just stalls…so my question is does a preloader have to be in the first frame of a file to work? I tried putting the detection in another scene ahead of the preloader one and it still doesn’t work…Any ideas?
I’ve already tried macromedia’s detection kit and that won’t work either - just goes to my upgrage page even tho i have the proper plug in…heard there was a bug in it for Mac…
Use javascript instead in detecting the Flash player. You can have your index page contain the javascript Flash plug-in check then redirect your users to the flash page if they have the plug-in or to the download page when they don’t have the player.
The script is as follows:
<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion = 5;//this is the version of flash you want to detect
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
var words = navigator.plugins["Shockwave Flash"].description.split(" ");
for (var i = 0; i < words.length; ++i)
{
if (isNaN(parseInt(words*)))
continue;
var MM_PluginVersion = words*;
}
var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0
&& (navigator.appVersion.indexOf("Win") != -1)) {
document.write('<SCR' + 'IPT LANGUAGE=VBScript\>
'); //FS hide this from IE4.5 Mac by splitting the tag
document.write('on error resume next
');
document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))
');
document.write('</SCR' + 'IPT\>
');
}
if ( !MM_FlashCanPlay ) {
window.location.replace("downloadflash.html");//this is the download page if the user does not have the plug-in
}
else{
window.location.replace("flashcanplay.html");//this is the main page if the user has the plug-in
}
//-->
</SCRIPT>
You have to place that script within the <head> tags of your index.html.