Flash and Accessability

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gregerly
    Recognized Expert New Member
    • Sep 2006
    • 192

    Flash and Accessability

    Hello,

    I posted this in the Flash forum, and they said I should move this over here, so I hope i'm not annoying anyone by double posting.

    I have a XHTML Strict document that I am trying to use some flash on, but I'm having problems with validating the doc. I'm using Dreamweaver CS3 to develop with, and Dreamweaver does two things to add flash to a document. First, it uses javascript to create an swfobject, and include the flash file that way first (so you don't have to click it for it to work). Then it adds a <noscript> tag that will add the flash with the <object> tag if there is no javascript available in the browser enviornment. The code for the noscript tag is below:

    [HTML]<noscript>
    <object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=9,0,28,0" width="780" height="155" title="Fresno Fusion">
    <param name="movie" value="../swf/flash_header.sw f" />
    <param name="quality" value="high" />
    <embed src="../swf/flash_header.sw f" quality="high" pluginspage="ht tp://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=S hockwaveFlash" type="applicati on/x-shockwave-flash" width="780" height="155"></embed>
    </object>
    </noscript>[/HTML]

    When I remove the code above, the page will validate, however leaving it in will not validate in an XHTML Strict doc. Is there a way to include the Flash, and have it validate?

    Thanks in advance!

    Greg
  • LStewart
    New Member
    • Jun 2007
    • 2

    #2
    Originally posted by gregerly
    Hello,

    I posted this in the Flash forum, and they said I should move this over here, so I hope i'm not annoying anyone by double posting.

    I have a XHTML Strict document that I am trying to use some flash on, but I'm having problems with validating the doc. I'm using Dreamweaver CS3 to develop with, and Dreamweaver does two things to add flash to a document. First, it uses javascript to create an swfobject, and include the flash file that way first (so you don't have to click it for it to work). Then it adds a <noscript> tag that will add the flash with the <object> tag if there is no javascript available in the browser enviornment. The code for the noscript tag is below:

    [HTML]<noscript>
    <object classid="clsid: D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/flash/swflash.cab#ver sion=9,0,28,0" width="780" height="155" title="Fresno Fusion">
    <param name="movie" value="../swf/flash_header.sw f" />
    <param name="quality" value="high" />
    <embed src="../swf/flash_header.sw f" quality="high" pluginspage="ht tp://www.adobe.com/shockwave/download/download.cgi?P1 _Prod_Version=S hockwaveFlash" type="applicati on/x-shockwave-flash" width="780" height="155"></embed>
    </object>
    </noscript>[/HTML]

    When I remove the code above, the page will validate, however leaving it in will not validate in an XHTML Strict doc. Is there a way to include the Flash, and have it validate?

    Thanks in advance!

    Greg
    Hi Greg,

    Does the javascript have HTML comment tags around it? I'm not sure if Dreamweaver does that for you or not?

    So it would be like

    <script type="text/javascript">
    <!--
    javascript here
    -->
    </script>

    Laura

    Comment

    • gregerly
      Recognized Expert New Member
      • Sep 2006
      • 192

      #3
      It doesn't, but the javascript validates if left alone. It's the <noscript> portion that I posted that I'm having issues with. I'll look into that though. Thanks for the reply.

      Greg

      Comment

      Working...