treehouse : what would you like to learn today?
Web Design Web Development iOS Development

swfobject width

  • I want to modify the width of an swf object;
    here is the code:
    index.php:
    <div id="websiteid">
    <script type="text/javascript">
    var flashvars = {};
    var params = {
    quality: "high",
    wmode: "window",
    devicefont: "false",
    allowscriptaccess: "always",
    bgcolor: "#000000",
    allowFullScreen: "true",
    scale: "noScale",
    salign: "lt",
    menu: "false"
    };
    var attributes = {
    id: "flash"
    };
    swfobject.embedSWF("template.swf", "websiteid", "520", "600", "9.0.0",
    "expressInstall.swf", flashvars, params, attributes);
    </script>
    </div>


    So, I modify the "520" with "800" for example, and if upload on my server nothing is changed, also if I open
    firebug and modify it it works.
    What could be the problem ? I've tried also to upload on other server and same issue.
  • I think you need to adjust the container's width (#websiteid)
  • I've tried this and it's not working, maybe it's a caching problem because if I change the width and refresh I didn't see the changes in browser but if I download the file from FTP and look over it I see the changes
  • do you have a link?
  • Here is the link...
  • It's still 520 on that link, so maybe you've uploaded the file to the wrong path?
  • I had this problem a while ago where changes that I made where not taking effect of the live server. I had somehow edited the file permissions to 200 on the server so the edited file would not over write the target file. Try to delete the the file of the live server rather than overwriting it. If it does not delete, permissions is the issue here.