WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
[resolved] Best way to embed SWF, and is swfobject already in theme? (8 posts)

  1. tomwood
    Member
    Posted 1 year ago #

    Hello,

    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; }
    		</style>
    <div id="flashContent">
    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="624" height="432" id="test1">
    <param name="movie" value="http://www.tomwood.us/wp-content/uploads/2013/02/uploadflash.swf" />
    <param name="play" value="false" />
    <param name="loop" value="false" />
    <embed src="http://www.tomwood.us/wp-content/uploads/2013/02/uploadflash.swf" width="624" height="432" name="test1" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"
    <param name="play" value="false" />
    <param name="loop" value="false" />
    </embed>
    </object>
    </div>

    http://www.tomwood.us/gensler

    Thanks

  2. nobita
    Member
    Theme Author

    Posted 1 year ago #

    Hi tomwood

    Let's use a sticky widget.

    Step1:

    text widget drop the stiky widget.

    and your html code paste.

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

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

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

    Thank you.

  3. tomwood
    Member
    Posted 1 year ago #

    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:

    http://www.tomwood.us/flash-test/

    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?

  4. nobita
    Member
    Theme Author

    Posted 1 year ago #

    Hi tomwood

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

    <embed src="http://www.tomwood.us/wp-content/flash/q14fourpictures355.swf" 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

  5. tomwood
    Member
    Posted 1 year ago #

    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.

  6. Basilsimon
    Member
    Posted 1 year ago #

    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? http://www.basilsimon.com

  7. Andrew
    Forum Moderator
    Posted 1 year ago #

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

  8. nobita
    Member
    Theme Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.