I've talked about this before, and there is plenty of information out there meandering along the Super Highway – but a lot of people still seem to really miss the boat on this. Maybe it's as simple as they feel they don't have time, or that it won't really matter anyway; either case though, that's the wrong attitude to have. If you have a website or maybe more importantly if you are building a website for a company – then that website needs to be able to be indexed by the spiders that index for all of the major search engines. For my purposes today, I'm not going to focus on any; rather just touch on what you should do to get your hard work noticed by these hard working agents of search.
With more than 100 million websites called the web their home, you don't want to get hit by your competitors' truck pulling out of the driveway – so you have to do it right from the start. One way to get more information about your Flash site is to place some text within the first frame specifically for this. Google and Yahoo(I think this is the case with Yahoo as well) are able to scan SWF files, and back when Macromedia still existed – they created a tool specifically for checking the results of this, the Flash Search Engine SDK. Take a look at a previous post here for more info.
Let's get right into it and start off with getting the Flash content into the page. You have to start with placement of the SWF into the page, I use SWFObject exclusively. Adobe has some code they use to do this as well, but SWFObject is much cleaner, and I have used for a few years now and there is no real reason to switch. So now a simple starting page could look like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>most awesome site on the planet</title>
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="robots" content="index,follow" />
<link rel="stylesheet" type="text/css" href="/includes/css/screen.css" _fcksavedurl=""/includes/css/screen.css" " _fcksavedurl=""/includes/css/screen.css" " />
<link rel="Shortcut Icon" type="image/x-icon" href="favicon.ico" />
var so = new SWFObject("/media/UI/mainLoader.swf", "microSite", "750", "625", "8", "#FFFFFF");
<!– Google Analytics Code –>
What you want to focus on right now is the mainFlashUI div. This is where you will place all of the information you would like to have indexed in regards to the entry point of your site. The other thing to consider here, is this isn't a place to put just a note about the user needing Flash, this is where you place your alternate content so folks who don't have Flash, or choose to turn it off or have a disability can get the same or similar information that is conveyed within the Flash. This is really the big issue; this should be designed with all of those things in mind, and not just SEO. The text and links within the mainFlashUI div will get crawled before any Flash is loaded over that div, and that is what will get attached to the results, this way you don't wind up with something like this:
LOADING PAGE Contact Contact Contact Contact COMPANY NAME Your nice company slogan
When creating this content, be standards oriented and keep the overall code to content very low, and validate your work. This will help with the indexing as well since the crawlers will be able to get to the content easier.
When creating the Flash site, it is always a good idea to create multiple sections then load those sections into the main UI of the site. This will keep the initial bandwidth load more tolerable, as well as possibly getting more information to the crawler parsing your Flash site. I don't know if Google or Yahoo actually follow a loadMovie, but it wouldn't surprise if they can.
If the site you are creating is large, you might want to consider using SWFAddress to allow for deep linking to the various sections within your Flash site. These links could then be added directly to the initial page content (or site map) allowing for more links
The bulk of the work will really reside in how well you design and develop your alternate content, and I know a lot of folks are really opposed to creating an alternate site once your Flash masterpiece has been completed. But it's not really about you is it? I try and say this with the least amount of sarcasm as possible, since you're most likely not putting up a website so you can be the only one to look at it. Take the time to layout out the page as semantically as possible, separating content from markup and creating a nice space that will allow the maximum number of folks to view your site. There are lots of references available for CSS and Standards Oriented Design: use them wisely.
In the end, you will have a site that is quite friendly to being indexed, and your results will reflect your hard work, and the effort put into making the site easy for crawlers to access.