Forums

[resolved] Problrem putting Flash movie in a template (6 posts)

  1. jrelgin
    Member
    Posted 1 year ago #

    I've had a difficult time implementing a flash movie file into my wordpress template. I have learned that you need to put all of your flash related files in the root WP directory so I have a .swf file and a .js file and I have called them as such:

    <script src="http://localhost/carpetandhardwood/intromovie.js" language="javascript" type="text/javascript"></script>
    Note: this I have entered just below <?php get_header(); ?> and then I have called the .swf with this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    It shows up but I cannot style that div that has a class of promo-movie. Currently the movie file is resting against my navigation bar but I want to add padding. No matter what CSS I write nothing happens. I wonder if it doesn't have something to do with the .js file being in the body of the page rather than in the header but I didn't want to put it in my header.php file because I don't want to call that file on every page of my website. Any help would be greatly appreciated! Thanks!

  2. lockettpots
    Member
    Posted 1 year ago #

    Have tried styling the object rather than the div?

    #promo-movie object{
         margin:20px;
    }
  3. jrelgin
    Member
    Posted 1 year ago #

    Hey, thanks lockettpots! I don't know why I didn't think of that but, alas, it didn't work. Any other suggestions? Thanks!

  4. jrelgin
    Member
    Posted 1 year ago #

    I think you may be on the right track though. I'm thinking there is something in that object that is not allowing me to style... I'm going to play with it awhile.

  5. jrelgin
    Member
    Posted 1 year ago #

    I should have read the forum rules before posting but here is the code for that Flash object in case anyone else wants to take a look at it. Its been modified a bit since lockettpots post. Thanks!

    http://wordpress.pastebin.com/U8dDiysa

  6. jrelgin
    Member
    Posted 1 year ago #

    I got this issue resolved using this plugin:
    http://wordpress.org/extend/plugins/kimili-flash-embed/
    It works beautifully!

Topic Closed

This topic has been closed to new replies.

About this Topic