Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tri 7 posts 27 karma points
    Mar 22, 2010 @ 08:29
    Tri
    0

    SWFObject is not defined

    when i tried to embed the .swf file using following code i get swf object is not defined errr

    will u please help

    js is like this.

    <script type="text/javascript">
             var so = new SWFObject("/flash/aanpak/aanpak.swf", "mymovie", "995", "280", "10.0.45.2", "#ffffff");
             so.addParam("wmode","transparent");
             so.addVariable("startBall", 1);
             so.write("BannerHomeContentRight");
            </script>

  • Anders Burla 2560 posts 8256 karma points
    Mar 22, 2010 @ 09:01
    Anders Burla
    0

    Do you have a script reference to http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js or included the swfobject js file in your scripts?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 22, 2010 @ 09:01
    Dirk De Grave
    0

    Stupid question: did you include a reference to the swfObject.js file (probably from the template code)?

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

    Cheers,

    /Dirk

  • dandrayne 1138 posts 2262 karma points
    Mar 22, 2010 @ 10:20
    dandrayne
    0

    That swfobject embed code is from v1.5 of swfobject, so if you have version 2.2 it will throw a "not defined" error

Please Sign in or register to post replies

Write your reply to:

Draft