Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Web Design (WordPress, Joomla, etc.) Trouble with SWF in webpage when viewed with Explorer

  • 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 tags to be correctly viewed in Explorer, but it wasn’t clear to me what those fixes might be. I wonder if there’s a way to just cut and paste a few extra lines of code inside the tags that appear on the pages that I’m having trouble with… that will make them acceptable to the Explorer browser?

    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.

    One of the pages in question is this:
    https://www.mapango.net/aarondesign/flash_movie.htm

    Thank you very much in advance.

    -Aaron

    Fernando Mol replied 16 years, 1 month ago 3 Members · 16 Replies
  • 16 Replies
  • Bishop Zareh

    March 24, 2010 at 6:38 am

    what about the SWF code that Flash generates? does that work? does it work on page other than your template?

    | Jameson Wallace
    | Motion Graphics Festival
    | New Motion + New Sound + New Code
    | https://MGFest.com

  • Aaron Hayman

    March 24, 2010 at 3:51 pm

    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.

  • Bishop Zareh

    March 25, 2010 at 1:46 am

    can you use this:
    https://jquery.lukelutman.com/plugins/flash/

    if not there should be many similar projects written in stand-alone js if you dont want to include the whole jquery base (~50k for version 1.3)

    using this plugin the code would be something like :

    $(‘#hello’).flash({
    src: ‘hello.swf’,
    width: 320,
    height: 240
    });

    | Jameson Wallace
    | Motion Graphics Festival
    | New Motion + New Sound + New Code
    | https://MGFest.com

  • Aaron Hayman

    March 29, 2010 at 11:22 pm

    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?

    The code for the SWF portion for one of the pages in question (https://www.mapango.net/aarondesign/flash_movie.htm) is this:



    Content on this page requires a newer version of Adobe Flash Player.

    Get 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.

    Thanks, in advance.

  • Fernando Mol

    March 29, 2010 at 11:41 pm

    Can you please describe more about what exactly is the problem with your site?

    Also, if you can write the exact message Dreamweaver is giving you it would be helpful.

    I can’t see your flash movie (the blue guitars) in Firefox or Safari on Vista64, on IE8 it works fine.

    *Always share a link to your site and rate the posts. This is a free service for you and for us.

  • Aaron Hayman

    March 29, 2010 at 11:58 pm

    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.

  • Fernando Mol

    March 30, 2010 at 1:53 am

    The HTML code seems to be OK.

    I accessed the SWF directly and it doesn’t work.

    Jameson is right on suggesting an alternate way to place the swf.

    I will assume (correct me if I’m wrong),

    -first, you tried placing the swf directly on Dreamweaver and uploaded all the generated files. Javascript, swf controls, etc. It didn’t worked.

    -then, you deleted the swf and all the links that DW created for external javascript files.

    -from Flash, you published again creating an HTML page. Copy/Pasted the code inside DW. It didn’t worked again.

    -then, you deleted all the code that you pasted and tried again with jQuery.

    If all of this is true, you have something wrong inside your swf file. You need to debug in Flash.

    I hope this helps

    *Always share a link to your site and rate the posts. This is a free service for you and for us.

  • Aaron Hayman

    March 30, 2010 at 4:27 am

    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.

  • Fernando Mol

    March 30, 2010 at 4:42 am

    You can try placing your swf again.

    -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.

  • Aaron Hayman

    March 30, 2010 at 4:54 am

    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?

Page 1 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy