Flash vs. 21,150 Search Engine Keywords
In my quest to build beautiful, exciting, and effective websites with Flash I decided to come up with a list of 20,000+ keywords for submission to Google etc… I wrote a little script that would combine keywords to make additional keywords. I created a few arrays with certain terms that would play nice with other terms. I then ran the script and tried to loop through each Array and combine the terms to create keyword phrases or Google Food as Gregory Cox would put it. I thought that Flash would be able to concatenate the string and push it into a text field on the stage without any problem. It turns out that Flash has a huge issue with writing to the text box each time it updated and ran through the loop.
The match was like Mike Tyson against Michael Spinks or Carl “The Truth” Williams. In less than 95 secs each was easily defeated. I chatted with my Friend and Flash Expert Tyler Wright and thusly took the heavy lifting away from Flash and instead made a variable that would store the data.After the nested loops had finished I throw the variable into the text field.
The result turned everything around. Flash turned back into the superhero that it has always been and kicked it out in less than one second. I kept adding to the array to see how it would handle even more data. I also tried putting the data into a Trace statement in the same way I tried to push the data to the text box. The result was slower than writing to the text field after the loops finish but the fun part about using trace() is that it will only retain a certain number of the results. The “Output window” will retain only 9999 items according to my test. Flash will process the entire amount but will only display the last 9999.
So this is what I learned from this exercise.
- Abstract the processing from the display. In other words set up a variable to store the data while looping and then only display that data when the looping is complete.
- The output window will only display the last 9999 results from any trace or combined traces.
- Flash AS 2 with Flash 8 can not handle repeated updates into a text field with large(really large) strings
Stay tuned for all the Search engine tips and tricks of how to optimize Flash files for optimization
Hey curtis check out my new blog and video on optimizing wordpress for search engines…
http://www.shouthead.com/wordpress-seo/wordpress-seo-tutorial-part-1-on-page-optimization.html
I still suggest cloaking with flash sites.. Even if some search engines will open a flash file and index it, They will have no where to link to and when someone clicks a search results it will take them to the front page… Cloaking would allow you to have search results point to parts within the file..