Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Aug 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Writing valid code with Flash plug-in

    Is it possible to have Flash on a page and have the HTML valid?

    When testing for validity, I get the following results:
    Line 20, column 15:
    <embed src="flash/fade2blk.swf" quality="high" bgcolor="#000000" w ...
    ^Error: there is no attribute "src" for this element (in this HTML version)

    Line 20, column 35:
    ... d src="flash/fade2blk.swf" quality="high" bgcolor="#000000" ...
    ^Error: there is no attribute "quality" for this element (in this HTML version)

    Line 20, column 35:
    ... de2blk.swf" quality="high" bgcolor="#000000" width="540" hei ...
    ^Error: there is no attribute "bgcolor" for this element (in this HTML version)

    Line 20, column 50:
    ... e2blk.swf" quality="high" bgcolor="#000000" width="540" height="180" t ...
    ^Error: there is no attribute "width" for this element (in this HTML version)

    Line 20, column 50:
    ... ality="high" bgcolor="#000000" width="540" height="180" type="applicat ...
    ^Error: there is no attribute "height" for this element (in this HTML version)

    Line 20, column 50:
    ... " bgcolor="#000000" width="540" height="180" type="application/x-shock ...
    ^Error: there is no attribute "type" for this element (in this HTML version)

    Line 20, column 50:
    ... type="application/x-shockwave-flash" pluginspage="http://www.macromed ...
    ^Error: there is no attribute "pluginspage" for this element (in this HTML version)

    Line 20, column 50:
    ... download/index.cgi?P1_Prod_Version=ShockwaveFlash">
    ^Error: element "embed" not defined in this HTML version
    Or am I stuck with invalid code when incorporating Flash?
    Redbeth
    ----------------------------
    web designer by day, fantasy artist by night

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Location
    Raleigh, NC
    Posts
    484
    Thanks
    0
    Thanked 0 Times in 0 Posts
    validation tools pick out possible errors from a set or standard rules. There are obvious exceptions to the rules. For example MS Word's grammer check makes suggestions but they are not always correct. Just because it comes up as invalid doesnt mean that it is incorrect. What validation tool are you using?
    -WebMark Art
    Programming is 80% thinking and 20% spelling

  • #3
    umm
    umm is offline
    Regular Coder
    Join Date
    Sep 2002
    Location
    Antipodes
    Posts
    106
    Thanks
    0
    Thanked 0 Times in 0 Posts
    try this link for validating with Flash in XHTML 1.0 Strict.

    http://groups.yahoo.com/group/wdf/message/21892

    Basically, you have to use the OBJECT and PARAM element. Here's a quick how-to from W3C

    http://www.w3.org/TR/REC-html40/stru...ml#edef-OBJECT

  • #4
    New Coder
    Join Date
    Aug 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm using the genuine official world wide web consortium validator: http://validator.w3.org

    umm wrote:
    Basically, you have to use the OBJECT and PARAM element.
    I've always used Dreamweaver to embed my objects, so it includes the EMBED tag as well as the OBJECT tag which Macromedia says is required for it to show up in Netscape. Apparently it doesn't validate that way.

    I'll try it again from the example you posted. I usually have to read technical manuals 5-10 times over a period of several weeks before they make sense to me.

    People who have the ability to do things without understanding them are good with tech manuals. I, on the other hand, need to understand everything before I can do them.
    Redbeth
    ----------------------------
    web designer by day, fantasy artist by night

  • #5
    New Coder
    Join Date
    Aug 2002
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In the example provided, they must be using JavaScript or some darn thing to get the Flash to display in Netscape, because it doesn't work without it.

    So I'm stuck for now with code that will not validate. This is why I have so much trouble adopting web standards.
    Redbeth
    ----------------------------
    web designer by day, fantasy artist by night


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •