Validating code for Flash objects

Discussion in 'HTML & Website Design' started by Alley Cat, Feb 28, 2010.

  1. #1
    Some weeks ago I was looking for code to embed a Flash object into my XHTML Strict1.0 pages, and the following fits the bill for that. The code was created by Elizabeth Castro.
    
    <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):
    Hope someone will find this useful one day.
     
    Alley Cat, Feb 28, 2010 IP
  2. Gary_Johnson

    Gary_Johnson Banned

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello,

    I can solve this problem... i ave solution for that... please reply me if you still finding solution....

    Waiting....
     
    Gary_Johnson, Mar 2, 2010 IP
  3. Gary_Johnson

    Gary_Johnson Banned

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello,
    Here is the code... please replace it with your object to object code... my paypal account is
    <p style="margin:0px; padding:0px;">
    <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>
    </p>
     
    Gary_Johnson, Mar 2, 2010 IP
  4. Pintoria

    Pintoria Guest

    Messages:
    38
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    To validate Flash elements, try SWFObject.
     
    Pintoria, Mar 3, 2010 IP
  5. Alley Cat

    Alley Cat Peon

    Messages:
    41
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    This was to let You People know that I had found the code that can embed a Flash object, and still validates as XHTML1.0 Strict.
    This code does validate as XHTML 1.0 Strict as well as embeds on all browser pages.
     
    Alley Cat, Mar 3, 2010 IP
    kk5st likes this.
  6. kk5st

    kk5st Prominent Member

    Messages:
    3,497
    Likes Received:
    376
    Best Answers:
    29
    Trophy Points:
    335
    #6
    Have you had any problems with IE versions that want an ActiveX classid? That's the one thing that led to my own, more complex version.
      <p><object type="application/x-shockwave-flash"
              classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
              width="xxx"
              height="yyy"
              id="movie">
        <param name="movie"
           value=example.swf" />
        <!--[if !ie]>-->
        <object type="application/x-shockwave-flash"
           data="example.swf"
           width="xxx"
           height="yyy"
           id="movie">
          <p>Oops!</p>
        </object> <!--<![endif]-->
      </object></p>
    Code (markup):
    The duplicate id in the alternative content throws a spurious error. Since only one of the two objects is rendered, it doesn't matter, and is, in fact, valid.

    I'll be testing the Castro method.

    cheers,

    gary
     
    kk5st, Mar 3, 2010 IP