Skip navigation
sportzel01
Currently Being Moderated

Inserting an .swf file through Dreamweaver validation issue

Jun 23, 2012 10:33 PM

Tags: #flash #dreamweaver #html5 #.swf

I've put together a flash gallery (.swf) and inserted it into and html5 document.  When I try to validate the page, I get two errors (see below).  I am new to html5, this is my first project.  My .swf files have always validated in html.  In doing some research, I found there is a new <embed> tag in html5, but I have no idea how to use if this is what i should be using now.  I tried, but it inserted into my page really small.  I'm lost, this is a little over my head.  Can someone help me how to insert my .swf file and get it validated?

  1. Error  Line 40, Column 127: Element object is missing one or more of the following attributes: data, type. …B8-444553540000" width="960" height="544" id="FlashID" title="discover europe">

     

    Attributes for element object:
    Global attributes
    data
    type
    typemustmatch
    name
    usemap
    form
    width
    height

     

  2. Error  Line 40, Column 127: The classid attribute on the object element is obsolete. Use the data and type attributes to invoke plugins. To set a parameter with the name classid, use the param element. …B8-444553540000" width="960" height="544" id="FlashID" title="discover europe">
 
Replies
  • Currently Being Moderated
    Jun 24, 2012 5:28 AM   in reply to sportzel01

    Please post a link to your page so we can see the underlying code.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2012 7:10 AM   in reply to sportzel01

    Looks like you are using the old <object><embed> method.

    While HTML5 does have an <embed> tag, it doesn't work in this instance. You'll need an <object> for the Flash.

    Try this single <object> method instead:

    <object data="path_to_file/file.swf" type="application/x-shockwave-flash" width="insert_width_of_movie" height="insert_height_of_movie">

      <param name="movie" value="path_to_file/file.swf">

      <param name="SomeOtherParam" value="ParamValue">

    </object>

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2012 9:13 AM   in reply to sportzel01

    Browsing to that page, Safari's Activity window tells me that this is NOT FOUND -

     

    <param name="movie" value="flash/discover_europe.swf">

     

    Fix that first.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2012 9:48 AM   in reply to sportzel01

    The file size has nothing to do with whether or not it uploads (unless your hosting package has specific limits).

    Of course, until you can get that file uploaded to the correct folder, the Flash will not display.

    As for validation, type the single <object> method illustrated above.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 24, 2012 10:02 AM   in reply to sportzel01

    If the path to the file is correct from the page that contains the <object> tag, then the SWF will display.

     
    |
    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