Support » Fixing WordPress » Flash movie will not embed properly

  • I’m trying to embed this movie in my blog. This code is taken from the Internet Archive site where the movie is hosted. It displays fine at their site but the screen is missing & I can’t get the movie to play on mine (see post). There must be something wrong with the code.

    <object type="application/x-shockwave-flash" width="320" height="263" id="FlowPlayer" data="http://www.archive.org/flv/FlowPlayerWhite.swf">
      <param name="movie" value="http://www.archive.org/flv/FlowPlayerWhite.swf"/>
      <param name="scale" value="noScale"/>
      <param name="wmode" value="transparent"/>
      <param name="allowScriptAccess" value="sameDomain"/>
      <param name="quality" value="high"/>
      <param name="flashvars" value="config={
        loop: false,
        initialScale: 'fit',
        videoFile: 'http://www.archive.org/download/oca_2007_movie/openlibrary.flv',
      }"/>
    </object>

    I’d appreciate any suggestions anyone might have about how to get this working.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m a noob, but this worked for me with the same basic problem. Edit the post, and pick the “Code” tab instead of the “Visual” tab.

    Insert your <object> tag inside of a <pre> tag, like this:

    <pre>
    <object type="application/x-shockwave-flash" width="320" height="263" id="FlowPlayer" data="http://www.archive.org/flv/FlowPlayerWhite.swf">
      <param name="movie" value="http://www.archive.org/flv/FlowPlayerWhite.swf"/>
      <param name="scale" value="noScale"/>
      <param name="wmode" value="transparent"/>
      <param name="allowScriptAccess" value="sameDomain"/>
      <param name="quality" value="high"/>
      <param name="flashvars" value="config={
        loop: false,
        initialScale: 'fit',
        videoFile: 'http://www.archive.org/download/oca_2007_movie/openlibrary.flv',
      }"/>
    </object>
    </pre>

    Here’s an example on my blog where I’ve done this:
    http://www.aohwell.com/?p=5

    I find that the PRE tag yields some pretty odd placement results. I tried the DD tag and that seems to do the trick.

    Beautiful, don’t know why I never thought of that. Worked great! Now I just need to figure out how to align it in the center…

    The PRE tag tells wordpress to not insert P and BR tags around your content. You can avoide that by delete all the line returns. Just delete so that all the object tags are on one line like: .../><param...

    You can adjust the PRE style in your style sheet. I’d recommend putting your object in PRE tag with a class like: <pre class="flash" ></pre>

    Then edit your style sheet in WP > Design > Theme Editor > Style.css. The name of your style sheet will depend on your theme. Go to the bottom and carefully enter something like:

    pre.flash { border:1px solid blue; margin:1em auto; width:400px; background:#eee; }

    good luck…

    Actually, that was many months ago. WordPress 2.6.2 should not muck with object tags like this anymore.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Flash movie will not embed properly’ is closed to new replies.