• Resolved blackdfl

    (@blackdfl)


    Hello fellow bloggers. I have an interesting little problem I just can’t figure out, so I thought I’d throw it out to all of you to see if anyone has a solution or work-around available.

    Here’s what I’m doing. I’m adding character models to some of my game guide posts using transparent flash objects. Looks sharp in the preview window – but when I hit publish there is nothing but an empty box where the flash should be.

    Here is an example of the character model by itself:

    http://gamezig.com/Abrahms.swf

    Here is an example of the published post with the empty area:

    http://gamezig.com/game-guides/wow-twink-guide-49-warrior

    And here is the preview with everything working flawlessly:

    http://gamezig.com/?p=718&preview=true

    Now, my question is – if it works in the preview, why does it break when I hit publish? What am I doing wrong?

    Here is the HTML added to the post for the flash:

    <OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ style=”float:right; padding-left:10px; padding-top:10px; padding-bottom:10px”
    codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0&#8243;
    WIDTH=”550″ HEIGHT=”400″ id=”Abrahms” ALIGN=””>
    <PARAM NAME=movie VALUE=”Abrahms.swf”> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=”Abrahms.swf” quality=high wmode=transparent bgcolor=#FFFFFF WIDTH=”550″ HEIGHT=”400″ NAME=”Abrahms” ALIGN=””
    TYPE=”application/x-shockwave-flash” PLUGINSPAGE=”http://www.macromedia.com/go/getflashplayer”></EMBED&gt;
    </OBJECT>

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter blackdfl

    (@blackdfl)

    Another note: Tested in Firefox and it looks great, just had to resize it in the HTML code to 300×300 and remove a few lines of code.

    For the Firefox version:

    <OBJECT classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ style=”float:right; padding-left:10px; padding-top:10px; padding-bottom:10px”
    <PARAM NAME=movie VALUE=”Abrahms.swf”> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src=”http://gamezig.com/Abrahms.swf&#8221; quality=high wmode=transparent bgcolor=#FFFFFF WIDTH=”300″ HEIGHT=”300″ NAME=”Abrahms”
    </EMBED>
    </OBJECT>

    Still doesn’t show at all in internet explorer. Just an empty box. Suggestions?

    You need to change the <OBJECT> tag to something like this:

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
     style="float:right; padding-left:10px; padding-top:10px;
     padding-bottom:10px"
     data="http://gamezig.com/Abrahms.swf"
     width="300"
     height="300"
    <PARAM NAME="movie" VALUE="http://gamezig.com/Abrahms.swf">
    <PARAM NAME="quality" VALUE="high">
    <PARAM NAME="wmode" VALUE="transparent">
    <PARAM NAME="bgcolor" VALUE="#FFFFFF">
    <EMBED src="http://gamezig.com/Abrahms.swf"
     quality="high" wmode="transparent" bgcolor="#FFFFFF"
     width="300" height="300" name="Abrahms"</EMBED>
    </OBJECT>

    The reason your Flash applet works in Firefox but not in IE is that Firefox gets the applet from the URL specified in the <EMBED> tag, which contains the full URL. IE, meanwhile, uses the URL specified in the movie parameter or in the data attribute of the <OBJECT> tag…

    Thread Starter blackdfl

    (@blackdfl)

    “Like a charm” – Thanks NC!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding Flash works in preview but not when published?’ is closed to new replies.