Not signed in (Sign In)

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

    • CommentAuthordoodlebee
    • CommentTimeJun 26th 2007
     
    I'm having a script errors appear when using this. The thing still works, but I'd like for it to be error-free. This is the error I am receiving:

    Warning: reference to undefined property this.attributes[name]
    Source File: file:///C:/Websites/site/swfobject.js
    Line: 47

    Line 47 reads as such (below is 46, 47 and 48):

    getAttribute: function(name){
    return this.attributes[name];
    },

    My code in the HTML document:

    (in the head tag):
    <script type="text/javascript" src="scripts/swfobject.js"></script>

    (in the body):
    <div id="flashcontent">
    If you're seeing this message, it's because Flash is not enabled on your browser.
    </div>

    <script type="text/javascript">
    // <![CDATA[
    var so = new SWFObject("images/globe.swf", "globe", "550", "450", "5", "#FFFFFF");
    so.addParam("wmode", "transparent");
    so.write("flashcontent");
    // ]]>
    </script>

    I thought it might be because I have the script and flash object in separate folders, so I tried moving everything up to the same level as the HTML file - but no go, same error appears. Would anyone have any ideas for me?
    • CommentAuthorAran
    • CommentTimeJun 26th 2007
     
    If you could post a link to your page, that would be helpful. Obviously you shouldn't be seeing a js error from swfObject. Are you getting an error in IE / Firefox or both?
    • CommentAuthordoodlebee
    • CommentTimeJun 26th 2007
     
    It's on my localhost server right now - I don't have it online. I'm seeing it in Forefox - I'm in the middle of developing the site, so I haven't checked it in IE yet, but...

    Okay, IE7 isn't showing the Flash object at all. Ditto with IE6 - it's showing my text instead of the Flash movie. I've turned on "Active X controls" and the flash movie still will not show up - just the text.
    • CommentAuthorphilip
    • CommentTimeJun 26th 2007
     
    do you have any other scripts on the page? maybe there's a conflict somewhere.

    without seeing the complete HTML file, we can't do more than make educated guesses.
    • CommentAuthordoodlebee
    • CommentTimeJun 27th 2007 edited
     
    >>without seeing the complete HTML file<<

    You pretty much are. I've just started on it, and it's pretty bare-bones right now. The only other tags are regular HTML stuff (divs, header, footer). There's a couple of images, and that's it.

    I've uploaded it for you so you can see it - but it's not much more than what I've posted here. I don't know what the forums rules are on links for code (I frequent a few forums - some don't want you to post any code, and some only want you to post code) - I can't find any info on that, but to save on someone's server spce, here's a link to it:

    http://www.anekostudios.com/test/swf/index.html

    If you'd rather have the code, a mod can remove the link and I'll post the code in it's place. But anyway, like I said - what you see above is pretty much what you get...

    but any help figuring it out would be appreciated!
    • CommentAuthordoodlebee
    • CommentTimeJun 27th 2007
     
    Well, I redownloaded the ZIP file, and uploaded the newly unzipped version. The other error is gone, but now I have a new one (the same one that actually shows up on the example on the site):

    Warning: reference to undefined property this.attributes[_10]
    Source File: http://www.anekostudios.com/test/swf/scripts/swfobject.js
    Line: 8

    Warning: Expected ':' but found 'undefined'. Declaration dropped.
    Source File: http://www.anekostudios.com/test/swf/index.html
    Line: 0

    Both are downgraded to "Warnings" though. The latter one, I saw a solution for on this forum already, but I have no idea how to apply it. Still won't show up in any version of IE I have though...but that's probably a setting I have somewhere.
    • CommentAuthorphilip
    • CommentTimeJun 27th 2007
     
    i don't get any errors when viewing your page in FF2 (Firebug, Web Dev Toolbar) or IE6.

    the IE6 page looks like the CSS is off a bit (layout's off-center and the PNG isn't transparent), but the SWF loads and I don't have any JS error messages.

    - philip
    • CommentAuthordoodlebee
    • CommentTimeJun 27th 2007
     
    Thanks Philip :)

    Yeah, I know the CSS is off (especially in IE6 with the PNG transparencies) - I'm just starting on the site, and IE is the last browser I check/fix. But the script - although they aren't errors anymore - are now down to warnings. I could live with it, I suppose. But I *do* prefer something more server-side than client-side, and I've found a PHP solution that seems to be working for me. I *do* love the SWF object (I've used it on several sites, and this is the first time I've had an issue with it), but if I can stick with a PHP solution, I will. It requires further testing though - so I may return to the SWF Object script.

    But anyway, thanks for the assistance everyone :)