all groups > macromedia flash sitedesign > may 2004 >
You're in the

macromedia flash sitedesign

group:

I need a "sniffer" to determine flash ver


I need a "sniffer" to determine flash ver diiorio
5/21/2004 7:20:29 PM
macromedia flash sitedesign: Does anyone know how to make a "sniffer" that will test a visitor's version of
Flash and then recommend an upgrade to them? With action script 2.0 it seems
everyone needs to upgrade and I hate the traditional button that links to mac's
site. I want it to be transparent to the visitor to my site.

Thanks,
Mike
www.diiorio.net

Re: I need a "sniffer" to determine flash ver waveturtle
5/21/2004 9:06:04 PM
If you are publishing the file to HTML, in file>publish settings, select the
"detect Flash version" box. This produces a main html page with your swf and an
alternate page telling the web surfer they need the latest version of Flash
Player. then you can modify the html pages to look how ever you like.

Rob
Re: I need a "sniffer" to determine flash ver ladyluna
5/21/2004 9:32:17 PM
Hi,
Is this option only available in MX 2004? I cannot find it in my MX version.
Re: I need a "sniffer" to determine flash ver diiorio
5/22/2004 2:35:08 AM
is it really that simple? you rock rob! thanks for taking the time to hook me up.

Re: I need a "sniffer" to determine flash ver waveturtle
5/22/2004 4:08:30 AM
I don't know if its available in MX, I started with MX 2004 (<----Newbie)

Re: I need a "sniffer" to determine flash ver Free-Lance
5/22/2004 12:26:57 PM
I`m use this code:

and i don`t have any problems with detection. if yes - movie play. if no - you
see image with link to Macromedia/

<html>
<head>
<TITLE>{your page title}</TITLE>
<link rel="stylesheet" href="{your css path}" media="screen">
</HEAD>
<BODY>
<MAP NAME="{your map name}"><area shape="" coords=""
href="http://www.macromedia.com/go/getflashplayer/" alt="+ MM FLash ?"></MAP>
<SCRIPT LANGUAGE=JavaScript1.1>
<!--
var MM_contentVersion = 6;
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[i])))
continue;
var MM_PluginVersion = words[i];
}
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\> \n'); //FS hide this from
IE4.5 Mac by splitting the tag
document.write('on error resume next \n');
document.write('MM_FlashCanPlay = (
IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." &
MM_contentVersion)))\n');
document.write('</SCR' + 'IPT\> \n');
}

document.write('<TABLE width="100%" height="100%" align="center"
valign="middle" border="0" cellpadding="0" cellspacing="0">');
document.write('<TR><TD width="100%" height="100%" align="center"
valign="middle">');

if ( MM_FlashCanPlay ) {

document.write('<OBJECT
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,29,0" ');
document.write(' ID="AK_OPENER" WIDTH="" HEIGHT="" ALIGN="">');
document.write(' <PARAM NAME=movie VALUE="yourMC.swf"> <PARAM NAME=menu
VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=bgcolor
VALUE=#somecolor> ');
document.write(' <EMBED src="yourMC.swf" menu=false quality=best
bgcolor=#somecolor ');
document.write(' swLiveConnect=FALSE WIDTH="" HEIGHT="" ALIGN=""');
document.write(' TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
document.write(' </EMBED>');
document.write(' </OBJECT>');

} else{
document.write('<IMG SRC="{path to altternate image that contain link to
Macromedia}" WIDTH="" HEIGHT="" usemap="#{your map name}" BORDER=0>');
}

document.write('</TD></TR></TABLE>');
//-->
</SCRIPT>

<NOSCRIPT>
<TABLE width="100%" height="100%" align="center" valign="middle" border="0"
cellpadding="0" cellspacing="0">
<TR>
<TD width="100%" height="100%" align="center" valign="middle">
<IMG SRC="{path to altternate image that contain link to Macromedia}"
WIDTH="" HEIGHT="" usemap="{your map name}" BORDER=0>
</TD>
</TR></TABLE>
</NOSCRIPT>

</BODY>
</HTML>
AddThis Social Bookmark Button