I thought you guys might get a kick out of this.
http://www.mustardlab.com/developer/test/new/
The directory includes the following files you can download if you want
gallery.fla
gallery.swf
gallery.php
index.php
**jpg images
what happens is the swf file loads in gallery.php which contains the following code
<?
$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;
?>
which spits out an xml list of every image in the folder gallery.php is included in
<?xml version="1.0"?>
<img src="animal.jpg" width="466" height="548" />
<img src="just_married.jpg" width="389" height="578" />
<img src="richard_mackson.jpg" width="473" height="316" />
<img src="sinister.jpg" width="480" height="360" />
<img src="st_helens.jpg" width="479" height="480" />
<img src="superdog.jpg" width="500" height="339" />
the index page lets you even link to a specific image
http://www.mustardlab.com/developer/test/new/?image=sinister.jpg
which is taken care of by some code in the index.php file
<param name="FlashVars" value="<? if(isset($_GET['image'])) echo "topimage=".$_GET['image'] ?>" />
all the source code is in http://www.mustardlab.com/developer/test/new/gallery.fla
I have to admit though, the visual idea of a photostack has to be credited to Andy from trendwhore.net if any of you are on there, he was also andy on o8. I just tried to make it as fast and seamless as possible
?

)
