homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

Script works in IE but not in FireFox
attempting to call Falsh movie and avoid bounding box

 1:14 am on Nov 29, 2007 (gmt 0)


I am using JavaScript to call a Flash movie so the bounding box will be avoided. I have just reloaded all of the pages and info using a new, holiday Flash movie. It works fine in IE, but Firefox continues to show the old movie.

I have cleared the cache and refreshed.

This is the code:

// JavaScript Document

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" id=file width=800 height=580>');
document.write('<param name=movie value="/holiday07.swf">');
document.write('<param name=quality value=high>');
document.write('<param name=loop value=false>');
document.write('<embed src="intro.swf" loop=false quality=high width=800 height=580 type="application/x-shockwave-flash" pluginspage="://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash">');

Here’s the HTML I use to call it.

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

Does anyone know what is causing this?

P.S. I have removed the http form the macromedia links as to not offend the mods. They are in my file though.

Thank you in advance.



 3:38 am on Nov 29, 2007 (gmt 0)

> Firefox continues to show the old movie.

That means that the movie is still cached -- Either in Firefox or in your FlashPlayer cache.
Or if you have changed the name of the .swf file, then the old JavaScript is what is still cached (in Firefox).



 5:32 am on Nov 29, 2007 (gmt 0)

The absolute best thing I've found for the bounding box issue is the SWFObject library, check it out. Saves so much time and headache, it's a little heavy but well worth it.


 4:49 pm on Nov 29, 2007 (gmt 0)

Thanks guys. I will look into those topics.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved