x First time here? Check out the FAQ
Join us a the Umbraco event of the year - get your Codegarden 14 early bird ticket today
  • Avatar1138posts2259karma
    Comment with ID: 12842
    dandrayne posted this reply August 20, 2009 @ 11:39

    possibly you haven't included swfobject?  http://code.google.com/p/swfobject/

    Your code looks ok, but what error messages are you getting?


  • Avatar553posts516karma
    Comment with ID: 12850
    trfletch posted this reply August 20, 2009 @ 12:18

    I have included SWFObject, below is the full source output which shows the reference to it, I have also of course put swfobject in the file structcure, the javascript error I get is Uncaught ReferenceError: SWFObject is not defined which is for the line

    var s1 = new SWFObject(path,"flashbanner1",videowidth,videoheight,"9","#FFFFFF");

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
     
    <head>
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
    <script type="text/javascript" src="/scripts/swfobject.js">
    </script>
    <title>dasdas</title>
     <meta name="description" content='sdasd' />
     <meta name="keywords" content='asdasd' />
     
    <link href="/css/resets.css" rel="stylesheet" type="text/css" />
    <link href="/css/wonderful-default.css" rel="stylesheet" type="text/css" />
    <link href="/css/tonys.css" rel="stylesheet" type="text/css" />
    <link href="/css/menu.css" rel="stylesheet" type="text/css" />
     
     
    </head>
    <body>
    <form method="post" action="/life.aspx?" id="aspnetForm">
    <div>
    <input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUENTM4MWRkfsMC/elanNWWKAcNPt59grV7jnU=" />
    </div>
     
    <div id="container">
    <b class="rtop"><b class="r1"></b> <b class="r2"></b><b class="r3"></b> <b class="r4"></b></b>
    <div id="logo"></div>
    <div id="banner1">
    </div>
    <div id="menu"><ul><li><a href="/"><span class="orangew">W</span>Home</a></li><li><a href="/life.aspx"><span class="orangew">W</span>life</a></li><li><a href="/community.aspx"><span class="orangew">W</span>community</a></li><li><a href="/training.aspx"><span class="orangew">W</span>training</a></li><li><a href="/contact.aspx"><span class="orangew">W</span>Contact</a></li></ul></div>
     
     
     <div id="movieplayer">
    <div id="flashbanner"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.
    </div><script type="text/javascript">
     
    // Previous JavaScript code
    var path = "/media/80/revival.swf";
    var videowidth = "100";
    var videoheight = "200";
    // Rest of JavaScript code
    var s1 = new SWFObject(path,"flashbanner1",videowidth,videoheight,"9","#FFFFFF");
    s1.addParam("allowfullscreen","true");
    s1.addParam("allowscriptaccess","always");
    s1.addParam("wmode","transparent");
    s1.write("flashbanner");
     
    </script>
    movie player</div>
    <div id="movielist">
    movie list
    </div>
     
    <div id="banner2and3">
    </div>
    <div id="footerlinks">FOOTER LINKS</div>
    </div>
    </form>
    </body>
    </html>

  • Avatar553posts516karma
    Comment with ID: 12863
    trfletch posted this reply August 20, 2009 @ 02:03

    Ok, I have managed to resolve it by changing the swfobject.js file I was using from the one on the website you suggested to an older version that I used on a previous website, not sure what the difference would be in the one from the website you suggested but it was causing it not to work? Maybe I downloaded the wrong file from the site?



  • Avatar553posts516karma
    Comment with ID: 12900
    trfletch posted this reply August 20, 2009 @ 06:39

    I see, so it wasn't me being a numpty, thanks for all your help


Pages:

Please login or Sign up To post replies