• Resolved tomwood

    (@tomwood)


    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="https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab" width="624" height="432" id="test1">
    <param name="movie" value="https://www.tomwood.us/wp-content/uploads/2013/02/uploadflash.swf" />
    <param name="play" value="false" />
    <param name="loop" value="false" />
    <embed src="https://www.tomwood.us/wp-content/uploads/2013/02/uploadflash.swf" width="624" height="432" name="test1" type="application/x-shockwave-flash" pluginspage="https://www.adobe.com/go/getflashplayer"
    <param name="play" value="false" />
    <param name="loop" value="false" />
    </embed>
    </object>
    </div>

    https://www.tomwood.us/gensler

    Thanks

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

    (@nobita)

    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.

    Thread Starter tomwood

    (@tomwood)

    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:

    https://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?

    Theme Author nobita

    (@nobita)

    Hi tomwood

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

    <embed src="https://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

    Thread Starter tomwood

    (@tomwood)

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

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

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

    Theme Author nobita

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