Flash and XML Gallery BETA

Flash Gallery is a FREE, simple photo gallery built in Macromedia Flash 2004, that uses XML files to store the information about which images to display. The gallery is easy to configure and update since you need to change only the XML file.

You can see the Flash Gallery demo or you can download the gallery!

48 Responses to “Flash and XML Gallery BETA”

  1. Aelstro says:

    Enjoying it.

    What are the chances you’ll build a way for this to connect to flickr folders or tags?

  2. aDeveloper says:

    Well I am currently working on this feature and I plan on releasing another gallery also free only for flickr RSS feeds. For now you can import another XML file with:

    http://flashgallery.org/gallery.swf?xml_file=http://flashgallery.org/images.xml

    But it must be in the format:
    <?xml version=”1.0″ encoding=”utf-8″ standalone=”yes”?>
    <images>
    <pic>
    <image>gallery/1.jpg</image>
    <thumbnail>gallery/s1.jpg</thumbnail>
    <caption>Some lamp on the ground</caption>
    </pic>
    </images>

    When importing a XML file from another domain place a crossdomain.xml file

  3. Flash Gallery update coming soon……

    Last night I’ve put some of my ideas for the new update of Flash Gallery on paper. Here are some of them.

    Create a better, more modern looking interface for the Flash Gallery
    Create a multi-gallery mode
    PHP and MySQL based administration panel e…

  4. Ben Gaskell says:

    I would like to say thanks for a great script! My Flash skills are not superb but I’m working my way up! Would it be possible to make a donation or possibly purchase a license to use the .FLA file? It would be excellent research and is perfect for one project I have at the moment, so used on one domain.

    Anyway thanks for the script, keep up the good work!

    BG

  5. aDeveloper says:

    An update is coming soon so after I am finished with this list I will make a official FLA for download.

  6. Wikkes says:

    nice gallery you made here!

    you gave this solution to import diferent xml files:

    http://flashgallery.org/gallery.swf?xml_file=http://flashgallery.org/images.xml

    but this does not work. even in your example.

    is something wrong?

  7. Simon says:

    Hallo,

    i’d like to say, that your flash/xml gallery is one of the best i ever saw.
    But there is one thing i’m missing, there’s no link like in the new version to open a single image in a new window.
    Maybe u like my idea and you have the time to add this to the old version too.
    I would be very happy about it (:

    Thanks

    Simon

  8. admin says:

    I am working on the new features more on customization of the gallery it will be soon available.

  9. Peter says:

    hi,
    thank you for good job!
    i’m trying to create my website (non-commercial of course) and i found you nice looking flash gallery template, this would be suitable for me because it’s similar in style,
    but would it be possible to create such template with still main image (i.e. image size fitted to window and without moving on mouse over it)?
    this is the only suggestion i have,

    regards
    Peter

  10. Behring says:

    Very nice job!

    Thank your for sharing.

    I dying for the oficial .fla file

    !!! ;) !!!

  11. Gene says:

    Thank you for sharing your very nice flash picture gallery!

    I am using it at my website http://rabe-sta-catalina.110mb.com/gallery.html

    However, I have been waiting for months now to download the latest (your demo) version because I think it is much better looking than the 0.1beta I am using. Can you please set for download your latest flash picture gallery?

    Thanks in advance.
    Gene Rabe

  12. M says:

    Nice stuff, kudos.

    src=”gallery.swf?xml_file=http://www.mysite.com/includes/gallery/i.xml”

    This doesnt work for me. It shows the gallery but with no images. the i.xml file is correct (its a copy of the original gallery xml file). Without this functionality its pretty useless to me.. any fix out soon?

    thanks

  13. admin says:

    It is working .. nothing to fix here, the only thing is do you have a crossdomain.xml file… and after all what about the image paths? I guess you are using relative so … make them absolute. You should figured this out but anyway.
    Good luck.

  14. M says:

    Thank you for your reply

    I found out it in fact DOES work in firefox but not in IE.

    I have used a crossdomain.xml file, this (to test):

    And this i.xml :

    gallery/1.jpg
    gallery/s1.jpg
    Some lamp on the ground

    It should be fine.

    I tried both relative and absolute paths.. still not working. No errors, just two big white boxes (the picture navigation on the left and the picture frame on the right).

    Any suggestions?

  15. M says:

    update: i tried the first (0.1?) and the 2nd (0.2beta) version

    0.1: result described as above
    0.2beta: seems to ignore the xml_file parameter entirely in IE (it actually loads the default XML), but again in firefox it works perfect.

  16. admin says:

    Did you add the xml_file=… to both param name=”movie” value=”gallery.swf?xml_file=…” and embed src=”gallery.swf?xml_file=…” quality=”high”

  17. la says:

    Nice job

    This is certainly the best gallery i’ve seen, and i guess it would be nice if there is a config file were we can choose the dimensions of the gallery, the size of thumbs and other sort of configs, just to make the gallery suitable for everyone’s needs.

    Thanks.

  18. Grendel says:

    Nice script, but one major bug – 4:3 proprtions only! But slr and dslr cameras work with 3:2 proportions! So, to look good, images in your script have to be at exact size to fill the grey area, which is 4:3 proportions and there is another problem – what to do with vertical shots? images of such sort are not centered by your script but put on the left side. there is a lot to think over, but still… looks great if you have 4:3 images from some digital compact camera…

  19. Donald says:

    Been looking all over for a free, easy to use gallery like this. It’s sleek, simple to use and very nice design. I would definitely pay for this if it came to it.

  20. Jos says:

    Are there any flash vars available for this gallery? My future gallery should be smaller in size than 800×600.

  21. dcloud says:

    any chance in having a configurable color?

  22. I need smaller size than 800×600

    And also a lot more room for the caption.

  23. Peter says:

    Hi there!

    First of all congratulations for the good job!!!
    I would love to implement it but there’s only one “if”. Since the fla is not provided there is no way to configure the size
    of the gallery.

    Hope this comes soon.

    Thanks and keep going!

  24. Jo says:

    First of all, amazing stuff, and THANK YOU for putting it up there for free.

    question – what is the image sizes you support? I tried this flash thing on my site, and it cuts and pans the images very weirdly… are there anything I am missing?

  25. Tom says:

    I’m just learning about Flash, and trying to make a photo gallery for my website. I use Dreamweaver, and when I tried to place the Flash Gallery on my page I’m not getting any functionality. The empty gallery shows, but no photos while “Loading Gallery XML” is displayed.
    This is undoubtedly my error, but I have no idea what I’m doing wrong. I placed all of the files from the download into Dreamweaver, and tried with the “Gallery” file both in and out of my “Images” file. Any suggestions??
    Thanks, this looks like a great product and I hope I can make it work!

  26. kat says:

    I used it in dreamweaver and it works just fine. Takes a second to load but that may be my file sizes. The only dissapointment was there is no warning that if your images files aren’t the correct size the gallery just cuts them and places them weirdly. Is there any way to fix this? Thanks so much for your work!

  27. Sara says:

    I was so happy to find a free version of a wonderful gallery! I need it for simple updating of portfolios for some of my clients.

    It’s wonderful!

    I’m only having one issue – the captions aren’t showing up where I’ve used it so far – AND – I don’t want people to be able to download the original file, how do I get rid of that little button?

    Thanks, you’re awesome!

  28. JCphotog says:

    Great gallery. I’m loving it so far! Is there anyway to change the screen size, and/or center images that are smaller than the window?

    Good work! I look forward to the next version!

  29. Thank you for the excellent free gallery. How do I make a word in the caption a clickable hyperlink? For example caption: Faith Lutheran Church website…visit. where ‘visit’ is the clickable hperlink to that website?

  30. Hello

    Thank you for this product. I believe i am hitting a bug. Images are not centered, but rather aligned to right top corner.

    Yes, i do use images smaller than 800×600 ratio.

  31. Ricardo says:

    Hi!

    Thank you for all this great work.

    I have a question for you. What do you think about the posibility of set big image size? With this you could use the gallery at several website sizes.

    Well, sorry about my english.

    Congratulations again from Spain!

  32. Travis D says:

    Just letting you know that i am glad that i stumped into this place and found out that this gallery is very simple looking.. clean look!

    However.. i cannot get this working in my css/php website :( I dont know if this is possible… is it? well tell me and i’ll contiune to work on it before i give it up :)

    Loved your creative.. keep it up

  33. David says:

    Hi!

    I was quite excited to find this nifty gallery, as I’m revamping my site and wanted a better way to arrange my art. i had 2 questions:

    1. is there a way to center it on the page (i’m learnig how to do all this as I go)

    2. the gallery appears on a black screen — how do I change that to white or something like a background image?

    Thanks!

  34. sanjeev aney says:

    Is there is any way by which I can change the size of display window(say 400×300 instead of 800×600) to suit my images in flash gallery?

  35. Janek says:

    hey mate, nice work!

    If you want to use Flash Gallery with your Picasa feed you might want to take a look at XSLT allowing you to convert it to something eatable by FG: http://www.zhr.pl/~wlkp.puchacze/galeria3/picasaToFlashGallery.xsl

    Now you need to apply the transformation using whichever server-side language you want.

    Example in PHP:
    [code]
    header( "Content-type: text/xml; encoding=utf-8" );

    $user = "wlkp.puchacze";
    $album = "BiwakDruzynySiedlikW08";
    $url = "http://picasaweb.google.com/data/feed/api/user/$user/album/$album?kind=photo";

    // Load the XML source
    $xml = new DOMDocument;
    $xml->load( $url );

    $xsl = new DOMDocument;
    $xsl->load( "picasaToFlashGallery.xsl" );

    // Configure the transformer
    $proc = new XSLTProcessor;
    $proc->importStyleSheet( $xsl ); // attach the xsl rules

    echo $proc->transformToXML( $xml );
    [/code]

    Use it with xml_file parameter on gallery.swf like this: gallery.swf?xml_file=images.php

    Hope it helps

  36. ziv says:

    Hi, i wanted to know how is it possible to disable the download image option in the flash gallery.

    Thanks,

    Ziv

  37. Anders says:

    Hey ;o)

    When you make the final version will the watermark dissapear or ?

  38. gabriela says:

    Hello,

    A very nice tool and I thank you for it, but I have one issue with it…The portrait images are being resized or cropped as landscape. Is there any way to fix that?

    Thank you and keep up the good work.

  39. Lynd says:

    Nice work!
    Thank you for sharing this great work. One suggestion, is it possible to make the large image always in the centre of the gallery?
    Thanks again.

  40. Satty says:

    Hi,
    Thanks for sharing. Keep up the good work.
    Regards,
    satty

  41. delice says:

    Everythink ok. just how do I put the thumbnails to gallaery folder.This is what I could not understand.Thank you…

  42. Ryan says:

    Hey,

    Will you be making a version where images will be centered? For instance, if the image is smaller then 800×600, it gets aligned to the left side, would be nice if those images were centered.

  43. Chris says:

    Is there anyway to resize the flash gallery? My photos are small (about 500×300) and I’d like to show them in the gallery. But right now, they appear left aligned with a lot of gray space. Resizing just removes the bar at the bottom.

    Any ideas?

  44. Hallo,

    I have make a importing function in PHP. This file convert your image in 800×600 pixel and 70×70 pixel.

    use:

    1) create a “$root/import/” folder
    2) copy your image in the “$root/import/” folder
    3) create a $root/import.php file whit this code:

    <?php

    global $nome_file,$estensione_file;

    function estensione_file($nome_originale){
    $estensione_file=substr(strtolower(strrchr(trim($nome_originale),”.”)),0);
    return $estensione_file;
    }

    function scrivi_file($fp, $nome_file){

    fwrite($fp, ”);
    fwrite($fp, “images/$nome_file” );
    fwrite($fp, “thumb/$nome_file” );
    fwrite($fp, “$nome_file” );
    fwrite($fp, ” . “\n”);

    return true;
    }

    // open file
    copy (‘./images.xml’,’./_images.xml’);
    $fp = fopen(“./images.xml”, “w”);
    if (!$fp)
    {
    print “Errore: Impossibile aprire il file!”;
    exit;
    }

    fwrite($fp, ” . $capo);
    fwrite($fp, ” . $capo);

    $dir = opendir(“./import/”);
    while(false != ($file = readdir($dir)))
    {
    if ( $file != “.” and $file != “..” and $file[0] != “_”)
    {

    print ($file . “\n\r”);

    $percorsofile = “./import/” . $file;
    $dimt=getimagesize($percorsofile);
    $img = $percorsofile;
    $w=$dimt[0];
    $h=$dimt[1];

    $percentuale_w = 100 / ($dimt[0] / 800);
    $percentuale_h = 100 / ($dimt[1] / 600);
    if ($percentuale_w > $percentuale_h) $percentuale1 = $percentuale_h; else $percentuale1 = $percentuale_w;

    $v_perc=$percentuale1/100;
    $nw1=$w*$v_perc;
    $nh1=$h*$v_perc;

    $percentuale_w = 100 / ($dimt[0] / 70);
    $percentuale_h = 100 / ($dimt[1] / 70);
    if ($percentuale_w > $percentuale_h) $percentuale2 = $percentuale_h; else $percentuale2 = $percentuale_w;

    $v_perc=$percentuale2/100;
    $nw2=$w*$v_perc;
    $nh2=$h*$v_perc;

    if(estensione_file($img)==”.jpg”){

    print (“trovato jpeg”);

    // full
    $im=imagecreatefromjpeg($percorsofile);
    $out=imagecreatetruecolor($nw1,$nh1);
    imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
    imagejpeg($out,”./images/” . $file);
    imagedestroy($out);

    //thumb
    $out=imagecreatetruecolor($nw2,$nh2);
    imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
    imagejpeg($out,”./thumb/” . $file);
    imagedestroy($out);

    scrivi_file($fp, $file);

    }else if(estensione_file($img)==”.gif”){

    print (“trovato gif”);

    //full
    $im=imagecreatefromgif($percorsofile);
    $out=imagecreatetruecolor($nw1,$nh1);
    imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
    imagegif($out,”./images/” . $file);
    imagedestroy($out);

    //thumb
    $im=imagecreatefromgif($percorsofile);
    $out=imagecreatetruecolor($nw2,$nh2);
    imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
    imagegif($out,”./thumb/” . $file);
    imagedestroy($out);

    scrivi_file($fp, $file);

    }else if(estensione_file($img)==”.png”){

    print (“trovato png”);

    //full
    $im=imagecreatefrompng($percorsofile);
    $out=imagecreatetruecolor($nw1,$nh1);
    imagecopyresized($out, $im, 0, 0, 0, 0, $nw1,$nh1,$w,$h);
    imagepng($out,”./images/” . $file);
    imagedestroy($out);

    //thumb
    $im=imagecreatefrompng($percorsofile);
    $out=imagecreatetruecolor($nw2,$nh2);
    imagecopyresized($out, $im, 0, 0, 0, 0, $nw2,$nh2,$w,$h);
    imagepng($out,”./thumb/” . $file);
    imagedestroy($out);

    scrivi_file($fp, $file);

    }

    }

    }

    fwrite($fp, ” . $capo);

    fclose($fp);
    ?>

    4) open in your browser the $root/import.php file

  45. elt0n says:

    Hey man,

    Nice, very nice flash app. I downloaded it as a test. Putting ideas together for our new website. Unfortunately when I downloaded it the images in Portrait orientation don’t “fit-to-screen” in the window, i just get a grey line up the right hand side???? It works fine on your site on my PC, but when I download an test it doesn’t. any idea???
    would love to play with the FLA.. Credits and stuff to you of course and a link from our NEW website page!!
    Cheers mate,

    elt0n, UK.

  46. Ty says:

    Can we resize the images? If the image too big it will cut off. if smaller than 800×600 images display on the left and not align. It would be great to have these features.

  47. andres says:

    hello i need to change the color of the titles images.. because they are white.. and my backgroung color is very near to white… can I do something?

    thanks

  48. Chris says:

    Are you still there? I have downloaded your flashgallery beta and it is working great on Chrome, but it won’t run at all on IE, even when you allow everything, etc. Is there a fix to make it run on IE? Any help you can give would be appreciated. Thanks.

Leave a Reply


6 + = thirteen