• I’m trying to add swfobject code for my flash video but it’s not working.

    Head script:

    <script type="text/javascript" src="swfobject.js"></script>
    		<script type="text/javascript">
    			swfobject.registerObject("myFlashContent", "9.0.0", "expressInstall.swf");
    		</script>

    Body content code:

    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="200" id="myFlashContent">
    				<param name="movie" value="animation.swf" />
    				<param name="play" value="true" />
    				<param name="loop" value="true" />
    				<!--[if !IE]>-->
    				<object type="application/x-shockwave-flash" data="animation.swf" width="600" height="200">
    					<param name="play" value="true" />
    					<param name="loop" value="true" />
    				<!--<![endif]-->
    					<a href="http://www.adobe.com/go/getflashplayer">
    						<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
    					</a>
    				<!--[if !IE]>-->
    				</object>
    				<!--<![endif]-->
    			</object>

    For some reason that’s not working. It works for all of my other websites… is it my theme or does WordPress not allow flash? My website: http://rachelsilberman.com/CristinBishara/

    On the book page below the quotes you’ll see a white box. That’s where the flash is supposed to play. When I try to inspect element it just pops up as “Movie not loaded…” – I’m using the theme One Pager.

    Any suggestions?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Try using the full path:

    <param name="movie" value="full-path/animation.swf" />

    (Note: did not review each bit of code above, just noting issues I have seen in the past))

    If that does not work, discuss this with web host. They may not allow streaming or in particular the mime type .swf.

    Thread Starter Rachel

    (@xxrayray)

    That is the full path. I’ve been trying to get a hold of the person who created the theme but he hasn’t responded (even did a follow up email).

    That is the full path

    No, animation.swf is the file name. The full path would be something like mysite.com/wp-content/theme_name/folder/animation.swf

    Thread Starter Rachel

    (@xxrayray)

    The animation is in the same folder as the index is on. I tried doing it your way (rachelsilberman.com/CristinBishara/wp-content/themes/OnePager/animation.swf) but it still doesn’t work. I’ll try something other than swfobject. Thank you anyway! 🙂

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You’re not on the index.php file from your theme’s folder – the index.php file is just a template that a page uses. It’s not the actual location of the page you’re on.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    This is the file your Webpage is trying to find:
    http://rachelsilberman.com/CristinBishara/swfobject.js

    That file cannot be found because the file path is wrong.

    As you said you’ve tried using the full file path, please can you try again and leave it so that we can explore this issue further?

    Also just as a tip, try not to name file or folder names with capital letters.

    Thread Starter Rachel

    (@xxrayray)

    Alright, I used this file path:

    <script type="text/javascript" src="http://rachelsilberman.com/CristinBishara/wp-content/themes/OnePager/swfobject.js"></script>
    		<script type="text/javascript">
    			swfobject.registerObject("myFlashContent", "9.0.0", "expressInstall.swf");
    		</script>

    When signing up for the WordPress site via Bluehost I didn’t know the name I was calling it would be the URL, otherwise it would have been all lower case.

    Still doesn’t work… should I do the file path for all the anchor tags?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    And this bit:

    <object type="application/x-shockwave-flash" data="animation.swf" width="600" height="200">

    You need to change “animation.swf” to the right path.

    Thread Starter Rachel

    (@xxrayray)

    IT WORKS! I also had to add the “http://&#8221;

    Thank you SO much Andrew! 😀

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Flash not supported?’ is closed to new replies.