Trouble with SWF in webpage when viewed with Explorer
Posted by Aaron Hayman on March 23, 2010 at 4:47 pm
I have some pages of my website that have SWFs in them and these pages end up being jumbled when viewed with Explorer. I got a flag in Dreamweaver that stated that I needed some additional information in the
I don’t really understand Javascript and the website that I found that might have a fix for this was pretty complicated and had some very long, multi-step fixes that I couldn’t quite figure out. I wonder though if there’s a site that has some examples of just what the correct code is. I think if I were to see that I might be able to figure out how to apply that code to my own site.
I used the HTML code that Flash generates and that seems to work OK for the other browsers, but not so well for Explorer. I’m using an older version of Flash (CS3) and it appears that Microsoft just recently changed the requirements to Explorer and I can’t upgrade my Flash.
I’m not sure but I think that it’s going to be one of those things were the code is “redundant” like it’s going to be another copy of pretty much the same thing with just a few changes in the language to accommodate Explorer. Not sure what that code is though…
And to answer your other question, the code doesn’t seem to be working (in Explorer) on any of the pages where I have SWFs in the code.
Ok… I’m lost. I’m wondering what the code the code you gave me replaces or if it would be in addition to the code that I already have?
Do I need some sort of javascript thing that the page references for it… like the “<script src=”Scripts/swfobject_modified.js” type=”text/javascript”>” that I’ve already got?
Content on this page requires a newer version of Adobe Flash Player.
<script type=”text/javascript”>
//–>
I wonder if I really need a whole new script at all, or if there’s a few mods that I can do that would make it work in IE.
Also, I wonder if there’s any way to preview it (or check the code) for the latest version of IE for my Mac machine, as it doesn’t look like any of the newer versions of that browser are available for the Mac.
It looks like you’ll have to look at the source code for the code that I’ve pasted in order to see what I’m talking about. I guess that I don’t really know how to “quote code” here. Sorry.
The problem with my site is the very one that you’re having with it, that it can’t be viewed reliably with all browsers (or at least the major ones: Firefox, IE and Safari) and on both the Mac and PC. I’m wondering if there’s some HTML code that I can use as a “holder” for my SWF that might work better than the code I’m currently using… either that or additional code.
In Dreamweaver I get this message when I open the page in question (or any of the pages that I have that contain these SWFs):
“This page contains tags that may not work properly in the most recent versions of Internet Explorer. Dreamweaver cannot convert these tags.”
Funny, but I’ve gotten it to work in just the browsers that don’t work for you and vice versa. The fact that the pages in question work only intermittently is part of the problem though.
Thank you for taking the time to look at my stuff… No, I didn’t do anything like the process you’ve suggested in creating this page (or any other similar ones on my site). I simply used the code that Flash generates when you have it generate HTML code and then I pasted that inside of a div on my web page. I used a text editor for this and tested it out… and it did seem to work at the time in safari, I believe. It was only later that I realized that it didn’t work in Explorer and worked inconsistently in safari and Firefox. No jQwery code was used for this (although I use that code for other elements of the site like the drop down menus).
I tried opening up the SWF in the Flash player and it worked fine for me.
-Open your page
-In design view, place the cursor where you want your movie to be
-Go to the menu >Insert >Media >SWF
Save and test.
If your movie works going directly to it, then I have to tell you, it doesn’t in my computer (Vista 64 bits). So there’s a possibility that the swf is troubled.
*Always share a link to your site and rate the posts. This is a free service for you and for us.
OK… I’m going to have to try your method of placing the SWF with Dreamweaver instead of with Flash. I think that I may still have a problem though as I just have the CS3 suite (not anything more current) and I understand that Microsoft made a change to way that IE works with Flash, so I think that I’d still need some kind of workaround for getting it to view properly in all browsers.
Also I’m wondering what you mean when you say that you couldn’t get the SWF to work when you accessed it directly. It seems that in a previous post you said that you got it to work in IE (just the one that I’m having the biggest problem with). Could it possibly work in IE, but not directly in the Flash player?