How'd they do THIS?!

Credits for this gallery need to go out to CraftyMind over at the twelvestone forums. The principle is quite simple: a PHP reads the contents of a directory and spits out an XML with all image names and widths/heights of all JPG’s in that particular directory. Flash reads this XML and then starts loading all images.

$xml = '<?xml version="1.0"?'.'>';
$handle = opendir(".");
while ( ($file=readdir($handle)) !== false ) {
	if ( !is_dir($file) ){
		$pic = @getimagesize($file);
		if($pic != false && $pic[2] == 2){
			$xml .= '<img src="'.$file.'" width="'.$pic[0].'" height="'.$pic[1].'" />';
echo $xml;

The animation is done with actionscript tweening, making use of Robert Penners easing functions (see or [url=“”] for more info on this).

If you want to know more about it, download the sourcefiles or see some of your questions answered: read more about it here:

Have fun with it!!