SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Flash + XHTML 1.0 Strict

    Right

    After seeing the amazingly bloated code that flash generates to display a movie inline with a webpage, I went searching and came accross an article on ALA which outlines this code:

    Code:
    <object type="application/x-shockwave-flash" data="logoanimation.swf" width="130" height="100">
    <param name="movie" value="logoanimation.swf" />
    <img src="images/noflash.gif" width="130" height="100" alt="" />
    </object>
    Now that works really well! (NN4 + Mozilla 1.3 + IE 6) and has the bonus that if flash isn't supported it loads up the 'failsafe' gif image

    So what's the deal? is it okay to do it this way?

    I've got it up and running here and that page validates as XHTML 1.0 Strict at the moment (not finished though heh)...

  2. #2
    runat="server" Golgotha's Avatar
    Join Date
    Nov 2001
    Location
    Colorado
    Posts
    2,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that should work, you're just missing some params.
    Like it wont know what quality to render jpgs.
    what quality to render the movie.
    I wonder if it will still prompt them to DL the Flash player if they don't have it??

  3. #3
    SitePoint Zealot webQS's Avatar
    Join Date
    Oct 2002
    Location
    Sydney : Australia
    Posts
    144
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, That'll work with some ups and downs.

    IE for Win sometimes has a corrupt Flash Player control, causing the movie to be displayed as a textarea like object.
    I've had some probs deploying a movie this way in IE for Mac as well... seems to squash it up... I think that's my CSS though.

    Here's the code for my site -
    Code:
                        <object
                          class="flashMoofie"
                          type="application/x-shockwave-flash"
                          codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
                          data="http://www.webqs.com/index.swf?go=welcome&amp;uv=221"
                          width="100%"
                          height="360">
                          <param name="movie" value="http://www.webqs.com/index.swf?go=welcome&amp;uv=221" />
    
                          <param name="menu" value="false" />
                          <param name="quality" value="high" />
                          <param name="bgcolor" value="#000000" />
                          <a class="darkBg" href="http://www.macromedia.com/go/getflashplayer" title="link to the Macromedia Flash Player download page">Get the latest Flash Player from Macromedia</a>
                        </object>
    Here's an experiment I wrote up about it -
    "Publishing XHTML 1.0 compliant code from Flash MX"

    The thing to do at the moment is test it out on a wide range of platforms. I think it's ironic though that IE has the most difficulty displaying the Flahs movie this way - it's the one supposed to support object, Moz etc are supposed to support embed...
    But then Moz and Opera are better on the w3c rec's.

    Drew, the author of the article at ALA has said he is currently writing up a support table for the method.

    While your at it, take a peek at my latest experiment...
    Server side Flash detection with HTTP-ACCEPT

    Works pretty well....

    Cheers
    James


Bookmarks

Posting Permissions

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