Results 1 to 5 of 5

Thread: Flash, W3C XHTML Validation and IE

  1. #1
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Flash, W3C XHTML Validation and IE

    Right.
    I know the usual Embed is a no no, so Ive been using

    Code:
    <object type="application/x-shockwave-flash" data="http://www.youtube.com/v/FncILxajmlw" width="425"
    height="350">
    Works fine in FF & Opera, but not IE.
    If I use Embed, it obviously won't Validate (XHTML Tripple A).

    I read http://alistapart.com/articles/flashsatay which is an interesting way of doing it, but it needs the writing of a flash script file (and I dont have flash). It was also written in 2002, so im hoping there is an easier way that I've missed.
    Does anyone have the flash file script used in there, compiled?

    Out of curiosity, using the method in the code tags about, would this workif the person didn't have flash installed? Im guessing the browser would already need to understand the object type or it would just brain fart?


    Cheers
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  2. #2
    Member
    Join Date
    Sep 2007
    Location
    Leeds
    Posts
    166
    Thanks
    4
    Thanked
    5 times in 5 posts
    • Clockwork_Killa's system
      • Motherboard:
      • Asus KFN5-D SLI
      • CPU:
      • Opteron 2212 (2x)
      • Memory:
      • 4 gig Kingston ecc reg in dual channel
      • Storage:
      • 2x Raptor 36gig in raid 0, 1 Raptor X
      • Graphics card(s):
      • Fire GL 3100
      • PSU:
      • Corsair HX620
      • Case:
      • Coolermaster CM Stacker EVO
      • Monitor(s):
      • NEC Multisync 90GX2
      • Internet:
      • BE

    Re: Flash, W3C XHTML Validation and IE

    Flippin eck!!!!
    I just tried embedding an swf into a standard html in dreamweaver and this is what I got
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','550','height','400','title','flashtest','src','falshtest','qu ality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','falshtest' ); //end AC code
    </script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="550" height="400" title="flashtest">
    <param name="movie" value="falshtest.swf" />
    <param name="quality" value="high" />
    <embed src="falshtest.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="550" height="400"></embed>
    </object></noscript>
    Thats a lot of code!!!!
    I swear it used to be a whole lot simpler than that, I sure as hell dont remember any javascript being involved.
    All I can suggest is that you download a trial version of the latest version of dreamweaver from the adobe site, and just insert the swf into your html pagem, that way you can guarantee it will validate.
    Yes I realise thats the cowards way out, but itll save you a lot of hassle.
    Sorry I cant be of more help.
    *Edit that should be a :then a D not a
    Last edited by Clockwork_Killa; 16-10-2007 at 04:46 PM.

  3. #3
    Senior Member
    Join Date
    Sep 2006
    Location
    Cheltenham
    Posts
    269
    Thanks
    1
    Thanked
    8 times in 8 posts
    • Rishi's system
      • Motherboard:
      • Asus P5B
      • CPU:
      • Intel E6600 2.4Ghz
      • Memory:
      • Corsair 2GB - PC6400
      • Storage:
      • 1 x 250GB Maxtor 16MB Cache
      • Graphics card(s):
      • None :(
      • PSU:
      • hmmm :/
      • Case:
      • Black - Standard
      • Monitor(s):
      • 19" TFT 8ms
      • Internet:
      • Orange (I think!)

    Re: Flash, W3C XHTML Validation and IE

    Try:

    Code:
    <object width="XXX" height="XXX">
    <param name="movie" value="FILENAME.SWF">
    <embed src="FILENAME.SWF" width="XXX" height="XXX">
    </embed>
    </object>
    Obviously change some of the tag values
    .: Rishi :.

  4. #4
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Re: Flash, W3C XHTML Validation and IE

    Quote Originally Posted by Clockwork_Killa View Post
    Flippin eck!!!!
    I just tried embedding an swf into a standard html in dreamweaver and this is what I got

    Thats a lot of code!!!!
    I swear it used to be a whole lot simpler than that, I sure as hell dont remember any javascript being involved.
    All I can suggest is that you download a trial version of the latest version of dreamweaver from the adobe site, and just insert the swf into your html pagem, that way you can guarantee it will validate.
    Yes I realise thats the cowards way out, but itll save you a lot of hassle.
    Sorry I cant be of more help.
    *Edit that should be a :then a D not a
    Its not that simple i'm afraid. Just because Dreamweaver makes code, doesn't mean it will validate.
    For reference, it will still use the Embed method, which is not valid XHTML.

    Quote Originally Posted by Rishi View Post
    Try:

    Code:
    <object width="XXX" height="XXX">
    <param name="movie" value="FILENAME.SWF">
    <embed src="FILENAME.SWF" width="XXX" height="XXX">
    </embed>
    </object>
    Obviously change some of the tag values
    Thanks for the post, but thats nothing to do with what I asked
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  5. #5
    sp3n
    Guest

    Re: Flash, W3C XHTML Validation and IE

    sounds like you could make use of this
    has saved me so much time with cross browser issues, xhtml validation and passing variables into flash.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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