A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Flash player 6 problem~viewing SWF in emails

  1. #1
    Senior Member
    Join Date
    Feb 2002
    Posts
    192
    A new problem has been identified for people upgrading to Flash player 6. We cannot view any SWF movies embedded in Outlook Express emails! I can report that this is causing a major uproar at the many email stationery newsgroups and forums.

    If anyone knows of a fix, or new SWF HTML embedding script for Flash 6, please post. Any help would be useful.

    The problem only affects emails, SWF embedded in Web pages are ok.

    Thanks,
    Duir.

  2. #2
    Senior Member
    Join Date
    Feb 2002
    Posts
    192
    I'm not very good with HTML scripts, but I exported a HTML page from MX just to get the script. My guess at this stage is that there needs to be a "detect Flash player 6" thingy in the embedding script for Flash player 6 to be able to play SWFs embedded in emails. Here's the script.
    ......................................

    <HTML>
    <HEAD>
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <TITLE>Untitled-1</TITLE>
    </HEAD>
    <BODY bgcolor="#FFFFFF">
    <!-- URL's used in the movie-->
    <!-- text used in the movie-->
    <!-- image map -->
    <MAP NAME="Untitled-1"></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.ShockwaveFla sh." & MM_contentVersion)))\n');
    document.write('</SCR' + 'IPT\> \n');
    }
    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#version=6,0,0,0" ');
    document.write(' ID="Untitled-1" WIDTH="550" HEIGHT="400" ALIGN="">');
    document.write(' <PARAM NAME=movie VALUE="Untitled-1.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> ');
    document.write(' <EMBED src="Untitled-1.swf" quality=high bgcolor=#FFFFFF ');
    document.write(' swLiveConnect=FALSE WIDTH="550" HEIGHT="400" NAME="Untitled-1" 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="Untitled-1.gif" WIDTH="550" HEIGHT="400" usemap="#Untitled-1" BORDER=0>');
    }
    //-->
    </SCRIPT><NOSCRIPT><IMG SRC="Untitled-1.gif" WIDTH="550" HEIGHT="400" usemap="#Untitled-1" BORDER=0></NOSCRIPT>
    </BODY>
    </HTML>
    .....................................

    Duir.

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    126
    Originally posted by Duir
    My guess at this stage is that there needs to be a "detect Flash player 6" thingy in the embedding script for Flash player 6 to be able to play SWFs embedded in emails.
    I can only hope that noone has their email clients configured to allow javascript to execute in an HTML email !!

  4. #4
    Senior Member
    Join Date
    Feb 2002
    Posts
    192
    Those who do, do so at their own behest and pleasure, and in the knowledge of security dangers. There are thousands of people making HTML stationery. Those people will never disable JavaScript or AvctiveX, they install firewalls, Trojan removers and good antivirus.

    How about answering my question someone please?
    Duir.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center