Forums

SWFObject in background (4 posts)

  1. Doefus
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to put a .swf file on the background of my wordpress site. So when i -let's say- create a .swf file with a blue colored shape it should use it as a background for my website.

    So far i've tried two things:
    1:
    header.php:

    <script type="text/javascript" src="http://localhost/wordpress/wp-content/themes/default/swfobject.js"></script>
    
    <body>
    
    <script type="text/javascript">
    	var so = new SWFObject("http://localhost/wordpress/wp-content/themes/default/bluebackground.swf", "mymovie", "400", "400", "8", "#336699");
    	so.write("flashcontent");
    
    </script>
    <div id="flashcontent">
      This text is replaced by the Flash movie.
    </div>

    which sadly doesn't show me anything but the original 'this text is.. ' text.

    2:
    i've installed and activated WP-SWFObject and added:
    wp_swfobject_echo("bluebackground.swf", "800", "600");
    in header.php

    This did work, but it just puts the swf just there, not as a background.

    So my question is: How should i fix this so it does put the swf as a background?

    Tnx in advance,
    Rick

    http://wordpress.org/extend/plugins/wp-swfobject/

  2. Doefus
    Member
    Posted 1 year ago #

    I've got it working with the kml_flashembed plugin but there's still one problem left.

    <div id="flashcontent">
       [kml_flashembed movie="http://localhost/wordpress/wp-content/themes/default/background.swf" base="http://localhost/wordpress/wp-content/themes/default/" height="1000" width="100%" wmode="transparent" /]
    </div>

    Since i use it as a background, i have to put the with on a percentage not on the amount of pixels.

    Does anybody know how to solve this?

  3. pmarques
    Member
    Posted 1 year ago #

    Hey!

    I have this same problem. Did you solved it from 9 months to now?

    In fact what I want is to use a swf to make a random background. And ad a repeat-x, repeat-y.

    I would be very glad if you guys could help me!

    Tks a lot.

    P.

  4. rickyrebel
    Member
    Posted 1 year ago #

    doefus, hi nice done, i hope it still works
    u can do allot in actionscript3 with the size,
    can u add me on msn or send me a email if or still active in this,
    becouse i need your help and i can help u with the flash part
    world_controller@..hotmail..com

Topic Closed

This topic has been closed to new replies.

About this Topic