Blog by Jon Bishop - Understanding the Interactive Web

More About Me...

Jonathan Bishop is the Technical Media Specialist at Magicomm, LLC in Amesbury, MA. He specializes in the understanding and developing of web 2.0 technologies.

SEO and Flash

Can search engines read flash? A lot of people think that because flash is a program running on a website, it cannot be read by search engines. This is true to some extant however that does not mean there aren’t methods to make your flash movies Search Engine friendly. In fact Google CAN index your flash movies. In “Google Can Now Index . . . Flash!An Interview with Michael Marshall by Robin Nobles” (here), they discuss how Google indexes your flash movie and different things the author can do to help the process.

There are also other methods you can use if you want to be sure all search engines are indexing your flash movie. I use SWFobject. Here’s a brief explanation of how it can be used with some examples.

So first thing you need to do is upload swfobject.js to your website and link it in your header somewhere:

<script type="text/javascript" src="swfobject.js"></script>

Then you need to create a div tag with all the default contents of the flash movie. What your going to do is over right all of the data inside of that div tag when you load your flash movie.

[-]?View Code ACTIONSCRIPT
<div id="flashcontent">
This is what the search engines will read
</div>
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("mymovie.swf", "sotester", "600", "400", "9", "#FFFFFF");
so.write("flashcontent");
// ]]>
</script>

View Live Tutorial

And your done! So here’s the result:
Flash

And here’s what you see if you don’t have javascript or Flash Player:
No-Flash

And here’s what the search engines see:
SEO

Not too shabby.

The cool thing about all of this is the code is valid HTML and XHTML 1.0. There are also a bunch of other cool features with swfobject so explore their website and have some fun.

Now there has been some discussion on whether or not the content in the div tag that is being overwritten might be looked at as spam by Google at some point. So far it hasn’t been a problem and as long as developers don’t abuse this we should be good well into the future.

So go off and have fun with flash. Make many websites and flash intros to your hearts content (if your into that sorta thing). The future of flash looks brighter every day.

Add to FacebookAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to Ma.gnoliaAdd to TechnoratiAdd to FurlAdd to Newsvine

5 Responses to “SEO and Flash”

  1. Andy Says:

    Great tutorial. This will be really useful for anyone who didn’t know about it.

  2. douger93 Says:

    Is there any problem with this method for SEO when your Flash site has dynamic xml content?

    Or can you simply add the content from the xml inside the div tags?

  3. Jon Bishop Says:

    Google will index your XML file however it’s not clear if Google would point someone to a Flash file rather than the XML file thats loaded into it. I would recommend adding the XML content within the div tags as HTML.

  4. no imageEliot Harper (Who am I?) Says:

    Hi Jon, Yes, Google has been able to crawl .SWF files along with other file types for quite some time now. See the complete list of supported file types at http://www.google.com/help/faq_filetypes.html. You can review supported Flash objects by Google and other search engines on Tim Nash’s blog at http://www.timnash.co.uk/02/2008/swf-seo (in the table on that page).

    While some search engines can crawl Flash content, Flash does not provide the same level of structured content as HTML. In HTML, search engines rely on tags to identify structured content (h1, h2, alt,etc.). However, search engines today evaluate all content within a Flash file with equal weight and are unable to distinguish headings apart from other content, so you can’t create structured content in SWF like you can do in HTML. Yet!

    Eliot
    VDP blog: http://www.veedeepee.com

    Rate this:
    2.5
  5. no imageJon Bishop (Who am I?) Says:

    Thank Elliot,
    So until that time the option above is your best option. The alternate content within the DIV tag, properly laid out in HTML, is necessary to build an accessible site. Thanks for your thoughts.

    Rate this:
    2.8

Leave a Reply

Subscribe to Comments?

MYSERVICES

MYLISTINGS

Recent Readers. These are the cool and trendy people that reads my blog!Recent Readers

My social|median shirt12working at homeTop off the jeepWork in the frat shirtMy DeskTop of Gunstock