Skip navigation
Currently Being Moderated

Object tag HTML for SWF does not work for Firefox or Chrome.

Feb 20, 2013 3:09 PM

Hello,

 

It's been a while since I last was using Flash and putting SWF files on the web. Back then I used SWFObject 2 and it seemed to work. I'm now using Flash CS5.5 (Flash 11.5.0) and the HTML that it creates does not work. I also tried the code in the official Adobe Help, which is the same:

 

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" id="movie_name" align="middle">

    <param name="movie" value="movie_name.swf"/>

    <!--[if !IE]>-->

    <object type="application/x-shockwave-flash" data="movie_name.swf" width="550" height="400">

        <param name="movie" value="movie_name.swf"/>

    <!--<![endif]-->

        <a href="http://www.adobe.com/go/getflash">

            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player"/>

        </a>

    <!--[if !IE]>-->

    </object>

    <!--<![endif]-->

</object>

 

I've made the changes to absolute paths to my SWF files, and in Firefox and Chrome all I get is the button to go download the Flash Player. In Explorer 9 it works as expected. If I remove the 'if' statements for IE, it works fine in all three browsers, but something tells me that's not right either.

 

What is the current correct way to code the HTML to show a SWF?

 
Replies
  • kglad
    72,213 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 20, 2013 6:52 PM   in reply to tomwood2

    there's never been a problem with the html published by any of the flash versions that i know of including cs5.5

     

    in addition, you can use swfobject2.2.  there's no problem with it either.

     

    if you publish an html from cs5.5 and do NOT change any paths, do you see any problem?

     
    |
    Mark as:
  • kglad
    72,213 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 22, 2013 6:40 AM   in reply to tomwood2

    i see faulty code on that page.  it looks like some program or something is converting tags incorrectly:

     

    the first error i see is the end-comment tag for ie:

     

    instead of:

     

    <!--[if !IE]>-->

     

    which should be published by cs5.5

     

    i see:

     

    <!--[if !IE]>&#8211;>

     
    |
    Mark as:
  • kglad
    72,213 posts
    Jul 21, 2002
    Currently Being Moderated
    Feb 22, 2013 6:40 AM   in reply to tomwood2

    you're welcome.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points