Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.5a is a product of Lussumo. More Information: Documentation, Community Support.

    •  
      CommentAuthorSpookyET
    • CommentTimeJan 18th 2006 edited
     permalink
    Is this http://www.alistapart.com/articles/flashsatay/ still applicable today, or is there a better method to embed flash inside a web page using standard compliant tags and working in all browsers?

    moved to the right category (Graphics & Multimedia) by droppyale.
  1.  permalink
    • CommentAuthorSam K
    • CommentTimeJan 18th 2006 edited
     permalink
    There's a really cheap-ass way to do it with javascript, it's wrong in everyway, but it's quick, easy and it validates:

    function flashMe (flash,name,height,width)
    {
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+ width + '" height="' + height + '" id="' + name + '" align="middle">');
    document.write('<param name="allowScriptAccess" value="sameDomain" />');
    document.write('<param name="movie" value="/swf/' + flash + '" />');
    document.write('<param name="quality" value="high" />');
    document.write('<param name="bgcolor" value="#ffffff" />');
    document.write('<embed src="/swf/' + flash + '" quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="' + name + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
    }
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 18th 2006
     permalink
    droppyale, sorry. Do something to that that select box. Colour it. I keep missing it. I just don't see it.

    adjustafresh, have you used it?
  2.  permalink
    document.write is deprecated.

    Anyways, the flash satay works just fine. Include an embed for IE incase they're using older versions.
    •  
      CommentAuthorJohnRiv
    • CommentTimeJan 18th 2006
     permalink
    FlashObject is the simply best way to embed Flash. It's valid, easy to use, and helps with SEO. If you care about using web standards and Flash together, you should be using it.
    •  
      CommentAuthornifkin
    • CommentTimeJan 18th 2006
     permalink
    Another big vote for FlashObject. BIG VOTE!
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 18th 2006 edited
     permalink
    You sold it. I'm using it. I can't believe that some @$#$#@$ is selling a Dreamweaver extension that automatically adds FlashObject for $15.
    • CommentAuthorNick Presta
    • CommentTimeJan 19th 2006 edited
     permalink
    Although there is a slim chance, you should still have a fallback for people with javascript disabled.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 19th 2006
     permalink
    My noscript section has a step by step tutorial list for Opera, FF, and IE on the subject of enabling JavaScript.
  3.  permalink
    What do you mean? If someone has JS turned off, how will this script work?

    >_>
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 19th 2006
     permalink
    Get with the program or be left out. JS turned off is a very small percentage. Probably 100% of the people that THIS site targets have it on, since that is the default.
  4.  permalink
    I have JS turned off.

    >_>

    And the whole "Get with JS or be left out" thing isn't such a good idea. People sometimes have no choice, are ignorant or simply don't want JS on.

    If someone chooses to turn JS off, they shouldn't be penalized by not being able to view Flash content since JS and Flash have no relationship to each other.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 19th 2006
     permalink
    It's not an issue at this site based on the statistics I've seen. Instead of turning JS off, i suggest you install GreaseMonekey, FlashBlock, AdBlock to kill whatever pisses you off.
    • CommentAuthorspyyddir
    • CommentTimeJan 19th 2006
     permalink
    Or Pithhelmet is you're on Safari.
  5.  permalink

    youcan also use the satay method

    example, <code> <object type="application/x-shockwave-flash" data="flas/headers.swf" width="710" height="200">

                    <param name="movie" value="flas/headers.swf" />
                    <param name="menu" value="false" />
                    <ul>
                         <li><a href="print.php">print</a></li>
                         <li><a href="web.php">web</a></li>
                         <li><a href="identity.php">identity</a></li>
                    </ul>
    
                    <p><a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Download flash plugin here</a></p>
               </object>
    

    </code> and is valid

    •  
      CommentAuthorSpookyET
    • CommentTimeJan 19th 2006
     permalink
    The satay method uses a loader, right? Meaning, that the whole movie must be downloaded before the users sees anything. For my use, it's not good. I'm loaded http://maps.yahoo.com/beta .
    •  
      CommentAuthornifkin
    • CommentTimeJan 19th 2006
     permalink
    If someone has JS turned off, how will this script work?

    With FlashObject by default you code your page with static html content in an area. IF JS is enabled then the FlashObject code will replace the static content with the flash content. So if JS is disabled (or doesn't pass a version check, I think that's in there too) they will just keep the static content in place instead.
  6.  permalink
    I just want to add that Flash Satay has a few issues, including JAWS ignoring the Flash content.

    The FlashObject page goes over pretty much all of the alternative ways of embedding Flash and shows the pros/cons of each. You should go read it.
    •  
      CommentAuthornifkin
    • CommentTimeJan 20th 2006
     permalink
    spydr in the hizzy.
    •  
      CommentAuthorsandstrom
    • CommentTimeJan 22nd 2006
     permalink
    I PRODUCE LARGE VOLUMES OF PORK-BASED FOOD PRODUCTS!
    I would recommend this:

    <object type="application/x-shockwave-flash" data="flash.swf" width="700" height="300">
    <param name="movie" value="flash.swf" />
    <param name="quality" value="high" />
    <param name="wmode" value="transparent" />
    <param name="bgcolor" value="#eeeeee">
    <param name="menu" value="false">
    <img src="island1.jpg" width="700" height="300"/>
    </object>

    Doesn't work in IE5, island1.jpg will be displayed if the browser doesn't have flash installed.
    •  
      CommentAuthorSpookyET
    • CommentTimeJan 23rd 2006
     permalink
    Does it work in IE 5.5?
    •  
      CommentAuthorJohnRiv
    • CommentTimeJan 27th 2006
     permalink

    Just wanted to mention that a new version of FlashObject, version 1.3b, was released today. Changes include:


    • When calling FlashObject.write() you can now pass an HTMLElement reference

    • Fixed a bug that was crashing IE PC with Flash Player version 6.0.21, 6.0.23, or 6.0.29, if GetVariable or SetVariable (and a few other methods) was used

    • You may now specify a specific URL to redirect the user to after they complete an ExpressInstall process

    • FlashObject now integrates seamlessly with the Javascript Integration Kit

    • flashobject.js file has been compressed down to just over 6kb

    And for those that are interested, FlashObject works in all of the current web browsers, including, on PC: IE5/5.5/6, Netscape 7/8, Firefox, Mozilla, and Opera. On Mac: IE5.2, Safari, Firefox, Netscape 6/7, Mozilla, and Opera 7.5+, and should continue to work well into the future.

    •  
      CommentAuthorSpookyET
    • CommentTimeJan 27th 2006
     permalink
    Thank you.
Add your comments
    Username Password
  • Format comments as (Help)