Posted by: de-Hao on: July 14, 2008
Andreas was kind enough to call my attention to a different perspective of the SWF Searchability news, expressed in the article titled SWF indexing is a red herring, and you should all know that by now. I have to agree that there is still some room for improvement, so far as indexing dynamically loaded (XML, HTML, etc) content in SWF files. Even so, I am quite confident that it is just a matter of time before Google/Yahoo figure out how to effectively identify and interpret dynamically loaded content for SWF files and, in turn, associate the content with the parent Flash site.
So far as the JavaScript limitation is concerned, if we all (as good developers) follow best practices in implementing Flash JavaScript tools for getting around the inherent “click-to-activate” (IE 6/7, Opera 9+, etc.) browser issue, then whether or not the Google/Yahoo WebCrawler can interpret JavaScript should be a non-issue.
Code Snippet for implementing the SWFObject 2.0 codebase:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Embed Flash in my HTML: Sample Code</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
swfobject.embedSWF("myflashvideo.swf", "content", "300",
"120", "9.0.0", "expressInstall.swf");
</script>
</head>
<body>
<div id="content">
My alternative HTML content for users who don't have a Flash
player installed or a JavaScript-enabled Web Browser.
</div>
</body>
</html>
_
If you are bent on providing a truly SEO- and User-friendly Flash site, I recommend checking out the SWFObject codebase wiki!