WordPress.org

Ready to get started?Download WordPress

Forums

Flash movie will not embed properly (6 posts)

  1. richards1052
    Member
    Posted 6 years ago #

    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.

  2. spamandham
    Member
    Posted 6 years ago #

    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

  3. mmcglynn
    Member
    Posted 6 years ago #

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

  4. cronus3166
    Member
    Posted 6 years ago #

    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...

  5. thecoup
    Member
    Posted 5 years ago #

    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...

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic