GTA 4 Trailer

Posted by Ben Reubenstein Thu, 29 Mar 2007 15:27:00 GMT

The Rock Star Games site has been counting down to the trailer of GTA IV for a long time, so today when the counter hit 0 I was waiting to watch it. Unfortunately the site instantly stalled due to the high load. I was able to pull the source code from the page, even though the flash did not load, and thought this snippet was cute:

var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
if(hasRightVersion) { // if we've detected an acceptable version
theDudeAbides();
} else { // flash is too old or we can't detect the plugin
var alternateContent = ''
+ 'The Rockstar Games Presents Grand Theft Auto IV website requires the Macromedia Flash Player 8.'
+ 'Get Flash'; document.write(alternateContent); // insert non-flash content
}

Posted in ,  | no comments

Comments

   Comment Markup Help Preview comment