Detect valid swf path - cool :)
2.1 / 100% / FF3 - Ok, now that I know you are using 100% as you width / height, then I can point you to FAQ #1 on this page http://code.google.com/p/swfobject/wiki/faq. Basically, since SWFObject 2.x OVERWRITES the target <div> with an <object> tag you have to give some CSS styling in order for Gecko based browsers to render correctly. SWFObject 1.x inserted content WITHIN the target <div> (using innerHTML). "1. How can I create a SWF that will encompass 100% of the browser window? The following technique is also known as Full Browser Flash: Set both the width and height of your SWF to 100% in your SWFObject definition Include CSS to get rid of any default margins/padding and set the height of the html element, the body element and the entire chain of block level HTML elements that your SWF will be nested in to 100%, because Firefox (or: any Gecko based browser) in standards compliant mode (or: using a valid DOCTYPE) interprets percentages in a very strict way (to be precise: the percentage of the height of its parent container, which has to be set explicitly)": <style type="text/css" media="screen"> html, body, #flsh { height:100%; } body { margin:0; padding:0; overflow:hidden; } </style> // as you are renaming the div with a custom id/name, I believe "flsh" is the correct id to target. View demo here: http://www.bobbyvandersluis.com/swfobject/testsuite_2_1/test_dynamic_fullbro wserflash.html Can you let me know if this works. Cheers, Aran -----Original Message----- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dck Sent: Tuesday, 9 December 2008 5:40 PM To: SWFObject Subject: Re: Having difficulty with Firefox I did not post the detect valid swf path stuff btw. that is just a stupid thing to ask for. "If you right click in the area which the swf is supposed to appear, you will see a "flash movie not loaded" message. This behaviour comes from the Flash player itself, not SWFObject." It is not. There is no flash at all, meaning when you right click, it's the usual html drop menu. not flash. as for 2.1, I have no idea what the issue actually is and that is the problem. I updated flash to the latest 10.0.12.36, then use this in html: - head: <script type="text/javascript" src="js/swfobject-2.1.js"></script> <script type="text/javascript"> var params = { quality: 'best', wmode: 'transparent' }; swfobject.embedSWF("moviename.swf", "flshC", "100%", "100%", "8.0.0", "expressInstall.swf", {}, params, {id:"flsh",name:"flsh"}); </script> - body: <div id="flshC">Alternate Contents</div> Here's the twist. Using FF3: - JS OFF: Alternate Contents will show up - JS ON: - Offline (running locally from HD): It shows flash contents - Online (accessing web url): The flash contents does not show nor does the alternate contents, which tells me js was working fine to overwrite the div tag. Using IE6, Opera, and Chrome: - Flash Contents loads and shows up in online and offline test using swfobject 2.1 Alpha said he rolled back to 1.5, which is exactly what I did. And the work around I was talking about, to switch swfobject 1.5 and 2.1 according to flash version, was crap. I tried downgrading flash and FF3 with 2.1 still doesn't load flash at all. (Not "Movie not loaded", just nothing.) I just tried using the 2.1 static. It gets weirder. IE6 and Chrome shows "Movie Not Loaded", Opera loads just fine to the contents, and FF3 shows Alternate Contents (not "Movie not loaded"). --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
