Not signed in (Sign In)

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

    • CommentAuthormanuel_g
    • CommentTimeMay 9th 2007
     
    Hi there,
    I have a Problem with the implementation of the swf in safari unsing the swfObject. When I use the "object" and "embed" tag, my swf works fine, but not with the swfObject. The swf is displayed fine, but none of the buttonscripts work. Within the swf I load an XML (which works fine), generate a couple of movieclips according the XML (works fine, too) and put some scripts on the movieclip. In safari then the scripts are ignored! On all other Browsers I tested it workes fine (mac: opera, firefox; win: iex, opera, firefox).

    here's my code I use to implement the swf:

    <div id="header_flash">
    <script type="text/javascript" src="swfobject.js"></script>
    <div id="flashcontent">alternative content</div>

    <script type="text/javascript">
    // <![CDATA[

    var so = new SWFObject("test.swf", "test", "829", "692", "8", "#f2f2f2");
    so.write("flashcontent");

    // ]]>
    </script>
    </div>

    Has anyone an idea why this happens? i never had any problems using the swfObject in safari until now, so i'm a bit confused...

    thanks in advance, manuel
    • CommentAuthorAran
    • CommentTimeMay 9th 2007
     
    Manuel.

    I think you will need to post your page if you want people to test your specific implentation, as your swfObject codew looks very simple. You do have one issue which I can see from your code you included in your post.

    You should move the line <script type="text/javascript" src="swfobject.js"></script> into the <head> area of your HTML document.

    I don't have Mac at home, but I can test at work tomorrow if you post the page.

    Cheers,
    Aran
    • CommentAuthormanuel_g
    • CommentTimeMay 10th 2007
     
    Hi Aran,
    thanks for your reply. I think I found the problem, though I don't really unserstand it..!

    I have this piece of code in my css file to manage the no-flash content (<div id="flashcontent">alternative content</div>):
    #flashcontent {
    width: 829px;
    height: 64px;
    float: left;
    background-color:#f2f2f2;
    }

    and when I take this out of the css, everything works fine also on safari - I include it into the css again, nothing works on safari..!
    strange, but glad I found it!

    regards, manuel