WordPress.org

Ready to get started?Download WordPress

Forums

Flash not supported? (10 posts)

  1. Rachel
    Member
    Posted 8 months ago #

    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?

  2. Pioneer Valley Web Design
    Member
    Posted 8 months ago #

    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.

  3. Rachel
    Member
    Posted 8 months ago #

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

  4. Pioneer Valley Web Design
    Member
    Posted 8 months ago #

    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

  5. Rachel
    Member
    Posted 8 months ago #

    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! :)

  6. Andrew
    Forum Moderator
    Posted 8 months ago #

    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.

  7. Andrew
    Forum Moderator
    Posted 8 months ago #

    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.

  8. Rachel
    Member
    Posted 8 months ago #

    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?

  9. Andrew
    Forum Moderator
    Posted 8 months ago #

    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.

  10. Rachel
    Member
    Posted 8 months ago #

    IT WORKS! I also had to add the "http://"

    Thank you SO much Andrew! :D

Reply

You must log in to post.

About this Topic