35 points · by nickb · 18y ago · 14 comments
Not really, I would never make a site in flash. It's not 1998 anymore and I don't plan on selling cars or clothes, so this is a little late.
Good for whats left online, but I really hope this doesn't cause people to revive all-out flash sites.
Flash + game (mostly silly Flash games): http://www.google.com/search?hl=en&q=filetype%3Aswf+OR+f...
Flash + algorithm (finds some interesting CS and non-CS presentations): http://www.google.com/search?hl=en&q=filetype%3Aswf+OR+f...
> Not really, I would never make a site in flash.
There are a lot of photography portfolios online that use Flash (presumably to protect the photos and for presentation - e.g. first impressions for potential wedding clients). It would be nice if Yahoo/Flickr or Google image search could auto-tag (caption proximity) and index their photos. Though not specific to this announcement, it would be nice to have Flash-wrapped video screencasts/vlogs indexed by their audio content.
[edit] It's probably worth noting that I'm making the big assumption that this isn't something that was solicited by Google and Yahoo. Afterall, Flash has never been indexed before and it never seemed to bother them. It seems to be much more a problem for Adobe since the major search engines are pretty much in a position where they can tell content providers to F- off if they've developed their whole site in something like Flash. It's possible Google and Yahoo chose to pay for this or work out some kind of agreement and in that case there's nothing to gripe about.
Their purpose isn't to foster innovation, it is to remove an obstacle from the decision path of people buying Adobe's products.
This is an attempt to bump up the number of flash sites because now "not indexable by Google" is not an issue.
The Flash files that pull in their content from XML are easy once you find the external references. You simply crawl the references like you would any other page. Text embedded in Flash is another story...
If you're curious to see how this works Describe SWF is a great little tool and there's some good documentation on SWF at the Flasm site.
http://www.flagstonesoftware.com/describe/index.html http://flasm.sourceforge.net/
Also, since you can't really specify which spot in the swf to load (assuming you're going to display the swf in it's original context), I can't imagine why it would matter if you took into play conditionals. I mean, obviously you have to interpret everything, but aren't you really just after all the blobs of text so you can do, for all intents and purposes, does this document contain this text?
Thanks for the links!
If you want something quick and easy you can just look for instances of 'getURL' objects. These will always have the index of a string in the constant pool as an argument. From there you simply grab the value at that index and you have the URL.
Something even more primitive would only look for interesting strings in the constant pool. The constant pool is found at the top of an action block and you don't need to implement any instructions to get to it. By the way, the constant pool is the only place where you will find any "blobs of text".
If a variable or concatenated strings are passed to a getURL function in ActionScript then it's different. This is a 'getURL2' object. In this case you get an index to a table that contains variable names. From there you would have to look up the value of the variable, but you only have that if you've actually implemented all the instructions and you've been keeping track.
Text is... complicated... It's not just chunks of text or even character arrays. It's arrays of objects that contain all sorts of information, the most interesting bit being the particular glyph in a given font that should be displayed.
You can find a surprising number of external references just by looking in the constants pool of for instances of getURL without actually implementing a VM, but anything beyond that is a lot of work.
The JavaDocs for TransformSWF (which Describe SWF is built using) have quite a bit of useful information too.
Anyway, your original point that there's a simple solution that's at the very least a good start is still valid because a high number of external references in Flash can be found with minimal effort. For whatever reason, the major search engines chose to ignore Flash. Maybe they were waiting for a good solution instead of a good enough solution, but my guess is no one cares except Adobe.
http://www.flagstonesoftware.com/transform/datasheets/index....
They probably used the same methods.