Well crap! I was about to post an XML/Flash-based gallery question but I guess I don't need to.
However, the source FLA appears to be offline now. Anyone?
X-DUD!!!11~~ 2006.02.20, 06:18PM —
grid01 2006.03.16, 03:40PM — reverse
Hi craftymind,
love the code, everything looks fine, I just have couple of questions:
1) what are checking with:
if (this.t == 7)
and
if (this.t == 6) {
?
2) I've been trying to have a next and previous button, where previous should reverse the stack, it works if I duplicate the coe for cover and change
this.swapDepths(depth--);
to
this.swapDepths(depth++);
however it doesn't work smoothly as it waits for the stack to dinish and only then, with a bit of confusion, start reverting the order,
any suggestions? have you tried that before?
markdregan 2008.02.26, 03:11PM — Flash Player 6 Only
Any ideas why the source code will only work when exported to flash player 6???
Mark
JLM 2008.02.27, 09:56AM —
Mark
welcome to the barrel. I found an fla on the first page and had a v.quick look at the code, is that the source you refer to?
The movieclip loading is a bit of a work round hack but may still work, and may even work better than the Movie clip loader, but if your in AS3 I think the loading approach is really much cleaner I can sort out an example if you need.
I found a reference to Math.easeOutQuad, I did not spot where easeOutQuad was defined I prob missed an include of penner equations or something, but if you go to robertpenner.com you will find that early tween equations may have been placed on the Math class but now that is illegal in flash so you have to create your own object to place them on ie MyMath={} and then define the functions on thier or have them as standalone functions. So at first glance it looks like Math abuse is the cause 
Cheers
Justin
Tha.Riddla 2008.03.14, 02:45PM —
I've been trying to get this to work with files in subdirectories and was driving myself insane. To avert that for all you future users of this, here is my revised gallery.php code.
<?php
$xml = '<?xml version="1.0"?'.'>';
$filepath = "path_to_directory";
$handle = opendir($filepath);
while (false != ($file = readdir($handle))) {
$pic = @getimagesize($filepath."/".$file);
if($pic != false && $pic[2] == 2){
$xml .= '<img src="'.$filepath.'/'.$file.'" width="'.$pic[0].'" height="'.$pic[1].'" />';
}
}
echo $xml;
closedir($handle);
?>
verbtheory@yahoo.com 2008.04.04, 11:20PM — Embed this within existing movie?
Question, I'm not an expert and I'm using swish to develop my site.
Anyone know how do you load or embed this into Swish?
JLM 2008.04.05, 02:12PM —
loadMovie but I expect you will need to flare the current swf and rewrite the actionscript as swishscript. Alternatively here are some links that relate to swish that might help.
swishzone.com/index.php?area=resources&tab=movies&do=page&action=detailed&link_id=2057
forums.swishzone.com/index.php?showtopic=16730&hl=onenterframe
justinfront.net/swish/pictureDisplay.html
justinfront.net/swish/pictureDisplay.swi
And code that may or may not need work, the php is from here or adapted from 12stone.
<?php
$filename=$_POST['myPath'];
if(substr($filename,-4)==".txt"){
//only allow writing to text files
$str=$_POST['content'];
$fp=fopen($filename,"w");
if(!$fp) die("status=cannot open ".$filename );
$fw = fwrite($fp, $str);
fclose($fp);
if ($fw)
{
echo "status=success";
}
else
{
echo "status=failure to write to ".$filename." ".$str;
}
} else {
echo "status=Sorry you can only write 'txt' files";
}
?>
and some swish for loading
function update(name){
l = new LoadVars();
l.myPath = "/"+dir.path+name;
l.content= updateView_txt.text;
l.onLoad = function(ok){
if(ok){
if(this.status == "success"){
updateView_txt.text="Data written to text file";
}else{
updateView_txt.text=this.status;
}
}
}
l.sendAndLoad("/myphpwritescript.php", l, "POST")
}
no idea if stuff will need changing for swishmax2
Good luck
craftymind 2008.04.08, 07:07PM —
holy crap, 4 years old and still alive
I think its time I published the as3 version of this gallery that I'm using in eBay Desktop
tenPlus 2008.04.09, 11:21AM —
I have to admit having a bit of fun with it over the years - modding it, hacking it to try various other things and would like to take the opportunity to say thanks for firstly posting it originally, and secondly for keeping it hosted. I have upgraded 'puters over time and somewhere along the way lost the files so it was always good to re-download them.
You're a champion crafty, and it's also good to see you back again!
gwbosma 2008.05.14, 07:53AM — Adding images
Hi,
Tried to get the stack working, but I can't manage it. When I add new images, only the default one are displayed. How to add more images to the stack?
Willem
julian 2008.05.16, 05:26PM — attach movieclips
hello!
is it possible to attach a navigation like this:
var tl = this;
var clicked;
for (var i = 1; i <= 7; i++) {
this["mc" + i].onRollOver = function () {
if (this != tl.clicked) {
this.gotoAndPlay ("s1");
}
};
this["mc" + i].onRollOut = this["mc" + i].onReleaseOutside = function () {
if (this != tl.clicked) {
this.gotoAndPlay ("s2");
}
};
this["mc" + i].onRelease = function () {
if (this != tl.clicked) {
this.myNum = this._name.substr(2);
_root.content.gotoAndPlay("page" + this.myNum); //attached movieclip
this.gotoAndStop (20);
tl.clicked.gotoAndPlay("s2");
tl.clicked.useHandCursor = true;
tl.clicked = this;
this.useHandCursor = false;
}
};
}
and attach movieclips to the stack? and let rotate the added movieclip horizontally?
like a homepage
julian 2008.05.19, 01:29PM — :(
how is it possible to create a thumbnail view like on Andrew Berg's homepage: andrewberg.com/photobrowser/
can anybody help me?
akwilinski 2008.06.02, 02:54PM — grrrrrrr
I am trying to make separate photostacks on separate pages, but only works when the swfs are in the root directory. I made separate xml files and php files for each of the catagories in subdirectories, but it only works when the photos are in the root folder.
this is what I have:
home.html
gallery1.html, gallery1.swf, gallery1.php, gallery2.xml, and the gallery1.jpgs....
gallery2.html, gallery2.swf, gallery2.php, gallery2.xml, and the gallery2.jpgs....
gallery3.html, gallery3.swf, gallery3.php, gallery3.xml, and the gallery3.jpgs....
I was hoping it would work if I put them in separate ( /gallery1) directories and have the php find the sub-d
Is it possible to do this or should I find another photostack that will do this?
akwilinski 2008.06.06, 02:53AM — It's like my brain has capsized
I am a little slow huh,... the php code I needed was a few posts right above mine.
So thanks to Tha.Riddla. you have saved me hours of headaches due to my inability to code or understand php.
thanks again!!!
-AK
Curro 2009.01.23, 04:16PM — Problems with flash gallery
Hi Craftymind. Im new here, but i have downloaded the "flash gallery" that you have here, and i cant use it correctly. I open the ".fla" and run it, but the gallery appears on the corner, with all photos centered on the top left corner. WHY? How i can use into another .fla?
I need some help. Please.
Thanks a lot.
digitalgeneral 2009.06.03, 11:35PM — adding video
Hello, this setup works very well but I'm a video guy and I'd like to add some flv files to the mix. Ideally, photos and videos would be great! I've got little to no idea what to do but I believe it has something to do with the gallery.php code. In theory I would believe an if else statement would need to be made to load a player so that when the file comes up in the stack, it would be able to play.
Though, I may just be taking sh--t.
Sorry for resurrecting of an old thread.
skartknet 2009.06.04, 02:02PM —
Hi! I'm trying to include the gallery in a custom php file. It's work into dreamweaver activating the Live Data but doesn't work when I upload it into my server. Anyone?
Thanks!