Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthormawallace
    • CommentTimeMay 8th 2007
     
    I am trying to use SWFObject to deal with content.

    Could someone post eaxmple code to help me. My current code for the flash object I am using is as follows:-
    <embed src="player.swf" width="320" height="20" allowfullscreen="true" flashvars="&file=King of Kings.mp3&height=20&width=320" />
    I have been playing aroung all weekend and still cannot figure out how to work within SWFObject
    • CommentAuthorphilip
    • CommentTimeMay 8th 2007
     
    There are plenty of examples on the homepage: http://blog.deconcept.com/swfobject/#examples

    The standard method is:

    <head>
    <script type="text/javascript" src="swfobject.js"></script>
    </head>

    <body>

    <div id="flashcontent">
    This text is replaced by the Flash movie.
    </div>

    <script type="text/javascript">
    var so = new SWFObject("movie.swf", "mymovie", "400", "200", "8", "#336699");
    so.write("flashcontent");
    </script>

    </body>

    Since you're trying to pass variables using FlashVars, be sure to read the section named "Passing variables into your movies using the "Flashvars" parameter"