Flash w3c Validation Help

Discussion in 'HTML & Website Design' started by atomxpoet, Sep 24, 2009.

  1. #1
    Can someone help me make this compliant to w3c standards? I can't seem to get it using object tags...

    <embed src="http://card.mygamercard.net/Divided+King.swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" type="application/x-shockwave-flash" width="198" height="135" style="margin-left: 6px" alt="Divided King">
    </embed>
    Code (markup):
    It seems to be causing all the errors on my page.

    Url:
    alter.darkgamer.com
     
    atomxpoet, Sep 24, 2009 IP
  2. Alley Cat

    Alley Cat Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is how I did it, and it validates as XHTML1.0 Strict
    
    <object type="application/x-shockwave-flash" 
      data="flash-object.swf" 
      width="n" height="n" id="VideoPlayback">
      <param name="movie" 
        value="flash-object.swf" />
      <param name="allowScriptAcess" value="sameDomain" />
      <param name="quality" value="best" />
      <param name="bgcolor" value="#FFFFFF" />
      <param name="scale" value="noScale" />
      <param name="salign" value="TL" />
      <param name="FlashVars" value="playerMode=embedded" />
    </object>
    
    Code (markup):
     
    Alley Cat, Mar 16, 2010 IP
  3. Kerosene

    Kerosene Alpha & Omega™ Staff

    Messages:
    11,366
    Likes Received:
    575
    Best Answers:
    4
    Trophy Points:
    385
    #3
    This is what I use. It validates as XHTML 1.0 Strict.

    I've been using the same code for years, and would be interested to know if it works in IE8, as I haven't actually bothered to test it.

    <object data="flash.swf" type="application/x-shockwave-flash" width="500" height="500" class="flash"><param name="movie" value="flash.swf" /></object>
    Code (markup):
     
    Kerosene, Mar 16, 2010 IP