Not signed in (Sign In)

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

    • CommentAuthorlxteam
    • CommentTimeNov 16th 2007
     
    Hello there!

    I'm trying to use this SWFobject.JS, and it's working good in Internet Explorer.
    But in other browsers, like Mozilla Firefox, Opera, and Netscape Navigator, it has a little problem.
    It increases about 2pixels bellow the animation.
    And it is a problem for me, because I have a background image in HTML body, designed to align with a CSS drop-down menu.
    As you can see, and compare opening with I.E. and with Firefox browser, in this address: http://lxteam.bzhost.net/teste/teste.htm.
    I hope you can understand my problem, but if you have any doubts, please tell me.

    Thanks!
    • CommentAuthorphilip
    • CommentTimeNov 16th 2007
     
    your code is not standard SWFObject code!

    your body contains this:


    <script type="text/javascript">
    <!--
    var teste = new Flash("slide.swf", "slideshow", "450", "120");
    //parametros aqui...
    teste.addParameter("wmode", "transparent");
    teste.addParameter("showMenu", "false");
    teste.addParameter("quality", "high");
    teste.addParameter("loop", "true");
    teste.write();
    //-->
    </script>


    and your "swfobject.js" isn't swfobject, it's something else:


    /****************************************************************************
    * Flash Tag Write Object v1.8 - by Lucas Fererira - www.lucasferreira.com *
    * Info and Usage: www.lucasferreira.com/flashtag *
    * bugs/reports: contato@lucasferreira.com *
    ****************************************************************************/


    we only support the real swfobject in this forum.

    - philip
    • CommentAuthorlxteam
    • CommentTimeNov 16th 2007
     
    Thanks Philip, for you reminder!

    I'm really sorry, and you're right it was not your swfobject on there.
    I was testing with another JS, and I forgot to change it.

    But now I put the REAL swfobject, and now it's not working at all!
    Is it me? Or all the things are going worst? Oh my...

    Please, help me on this!

    Sam
    LX Team
    • CommentAuthorlxteam
    • CommentTimeNov 16th 2007
     
    It's on the same link:
    http://lxteam.bzhost.net/teste/teste.htm

    Thanks again!
    • CommentAuthorphilip
    • CommentTimeNov 16th 2007 edited
     
    your syntax is invalid.


    var so = new SWFObject("slide.swf", "slideshow", "450", "120");
    so.addParameter("wmode", "transparent");
    so.addParameter("showMenu", "false");
    so.addParameter("quality", "high");
    so.addParameter("loop", "true");
    so.write(flashcontent);


    should be

    var so = new SWFObject("slide.swf", "slideshow", "450", "120", "7", "#FFFFFF");
    so.addParam("wmode", "transparent");
    so.addParam("showMenu", "false");
    so.write(flashcontent);


    i added the min req version # for flash player (7, you can change if needed) and background color (#FFFFFF). if wmode is set to transparent, the specified bgcolor is ignored, but -- in my opinion -- it's a good habit to include it in your so definition anyway.

    i removed "quality" and "loop" addParam lines since the one you were specifying are the defaults and don't need to be specified.

    - philip
    • CommentAuthorlxteam
    • CommentTimeNov 17th 2007
     
    Ok Philip, thanks for the tips!
    Now, it's appears very nice on IE and Opera.
    But still doesn't show the flash animation, in Firefox and Netscape...
    Have you got a clue, about what's happening now?

    Sam
    LX Team
    • CommentAuthorlxteam
    • CommentTimeNov 17th 2007 edited
     
    I just overcome the problem!

    And I just want to share with you the solution.

    In IE, and Opera this param was enough:
    so.write(flashcontent);

    But in Firefox, only works this way:
    so.write("flashcontent");

    This one, is solved!
    • CommentAuthorlxteam
    • CommentTimeNov 17th 2007
     
    Oh, no!
    After all, It remains the problem...
    I just added, the place where the drop-down menu will apear.
    On IE, it's allright, but the Firefox, Opera and Netscape, it's wrong.
    And it puts above the animation, that anoying 2px distance again!

    It's not solved at all...
    • CommentAuthorlxteam
    • CommentTimeNov 17th 2007
     
    But I hope that thing is helpful for people who use firefox.
    They must put the following argument between those quotation marks:
    so.write("flashcontent");

    Sam
    LX Team
    • CommentAuthorphilip
    • CommentTimeNov 17th 2007
     
    my bad, i forgot to add the quotes. you should always use the quotes.

    as for the 2 pixels, it's probably either something in your CSS, or you may have specified the wrong height for you movie size.
    • CommentAuthorlxteam
    • CommentTimeNov 17th 2007
     
    The movie size its ok. And I believe the the css is not the problem. Because it works well on IE.
    I also tried without the CSS file but the problem is still there, and the pixel differece increses.
    And I don't get why it is happening!
    • CommentAuthorphilip
    • CommentTimeNov 17th 2007
     
    if it shows 2px in FF and not IE, that's a strong sign it IS your css, or how the two browsers interpret styling (box model issues, etc.)
    • CommentAuthorlxteam
    • CommentTimeNov 22nd 2007
     
    I just tried all the things I know over the CSS file, and I believe that's not the problem.
    And it's probably not a problem of the SWFobject.
    Maybe it's just a bad interpretation of the other browsers. Who knows...!
    But the problem is there... and i'm about to quit.
    But perhaps I will just take a rest, and later i'll keep trying to figure this out.
    Thanks for your efford, Philip!