Not signed in (Sign In)

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

  1.  
    When I load my web page the swf file does load properly (it didn't before I tried SWFObject), but I get an error on the web page.

    Line: 82
    Char: 1
    Error: 'null' is null or not an object
    Code: 0
    Url: http://ca.geocities.com/major_sciguy/

    Any ideas would be great. I have just recently started having trouble with swf files loading and this method has helped.

    Cheers,
    • CommentAuthorkamermans
    • CommentTimeDec 29th 2006
     
    You need a div called "flashcontent" for SWFObject to put the movie in.

    Find this in your code:

    <script type="text/javascript">
    var so = new SWFObject("mainMenu.swf", "mymovieName", "100%", "100%", "6", "#336699");
    so.write("flashcontent");
    </script>

    ...and put this BEFORE it:
    <div id="flashcontent">This is replaced by the flash movie</div>