Support » Theme: raindrops » Best way to embed SWF, and is swfobject already in theme?

  • Resolved tomwood



    I am trying to embed some Flash SWF animations on some pages in my Raindrops 1.008 themed site. In the past it was recommended to use swfobject, but I know things change quickly. The HTML that Flash (CS5.5 – 11.5.1) itself publishes doesn’t work at all in Firefox or Chrome. I’m using this for now, but Firefox and Chrome don’t recognize the ‘False’ commands for Play and Loop, they just play on page load. Explorer performs properly (for a change).

    If swfobject is still the preferred way, is it already in a js folder?

    <style type="text/css" media="screen">
    		#flashContent { width:100%; height:100%; margin-left: 100px; }
    <div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="" width="624" height="432" id="test1">
    <param name="movie" value="" />
    <param name="play" value="false" />
    <param name="loop" value="false" />
    <embed src="" width="624" height="432" name="test1" type="application/x-shockwave-flash" pluginspage=""
    <param name="play" value="false" />
    <param name="loop" value="false" />


Viewing 7 replies - 1 through 7 (of 7 total)
  • Theme Author nobita


    Hi tomwood

    Let’s use a sticky widget.


    text widget drop the stiky widget.

    and your html code paste.

    open style.css file
    Add to below code last line.

    .topsidebar #flashContent { width:100%; height:auto; max-width:100%;text-align:center; }

    Raindrops theme default responsive , margin-left:5% is recommendation from margin-left:100px.

    Thank you.

    Thanks nobita,

    I’m putting these on WordPress ‘Pages’ with different content on each page, plus I don’t want the sidebars showing on those pages. I set up a test page here:

    Explorer handles the code fine, Firefox and Chrome do not show the SWF if the ‘if IE’ statements are left in the SWF object code.

    When I ‘view source’ it appears that the WordPress page publisher is inserting paragraph tags in the code for the SWF object. Is there a way to turn that off?

    Theme Author nobita


    Hi tomwood

    If you embed swf from WordPress editor.
    try below code.

    <embed src="" type="application/x-shockwave-flash" width="400" height="300" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" style="border:1px solid red;">

    Above code maybe no wraped p element.

    IE firefox chrome can show your swf.

    red border is for debug.
    your swf size width=”355″ height=”509″ maybe show small in chrome.
    Please ajust each browser.

    Thank you

    Thanks nobita,

    It turns out that WordPress itself may be the culprit. When it published the code to embed the SWF it corrupted part of the HTML:

    instead of:
    <!–[if !IE]>–>

    it published:
    <!–[if !IE] &8211; >

    Which broke the code. I wrapped everything inside the <code> </code> tags and that keeps WordPress from touching the code, so far.

    Hello Nobita Id like to chime in if I may. I am trying to use an swf in place of the header jpg but the uploader doesnt support SWF. Is there any way I could replace my header image with one that is flash?

    Moderator Andrew Nevins


    @basilsimon, please only chime in if you’re contributing towards the topic’s issue.

    Theme Author nobita


    Hi Basilsimon

    Please write a new thread.

    Are you need from jpeg to swf each post or all posts ?

    Have you example swf file for header ?

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Best way to embed SWF, and is swfobject already in theme?’ is closed to new replies.