A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: Photo Gallery

  1. #1
    Capt Left Sock triton360's Avatar
    Join Date
    Oct 2003
    Location
    Texas, USA
    Posts
    224

    Photo Gallery

    I want to build a photo gallery (slide show) something to display pictures in a series but I dont want it sucking up tons of bandwidth to pull up the images. what is a good way of going about it.

    I read somethings about XML, or would there be a ActionScript, or PHP. etc. way.

    Also as a note the whole site is built in flash so want to show the images in the flash form.

    Thanks for your time,
    Cheers.

    JT

    Note: I'm using Flash MX
    Last edited by triton360; 04-27-2004 at 03:38 PM.

  2. #2
    Junior Member
    Join Date
    Apr 2004
    Posts
    14
    Why can't you use XML with your hosting service? It is just a text file that resides in a directory. Actionscript parses it and does all the work... it shouldn't have anything to do with hosting at all.
    -Trid3nt

  3. #3
    Capt Left Sock triton360's Avatar
    Join Date
    Oct 2003
    Location
    Texas, USA
    Posts
    224
    Yeah, On the XML that needs an edit, I can use it. Sorry about that.

  4. #4
    triton, where did you find stuff on on xml for your gallery. i am also trying to make one with no luck. but i haven't even read about xml.
    thanks.

  5. #5
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    You can do it with a straight textfile with variables as well. And its a lot less coding too.

    Easiest is with no textfile and have all images named sequentially. That way you can just replace old images by uploading a new with the same name and Flash will load that instead.

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  6. #6
    how do you use variables from a textfile.
    i can bring in text. and you variables in forms. but not sure how to connect the two.

  7. #7
    Senior Member pellepiano's Avatar
    Join Date
    Feb 2000
    Location
    Stockholm, Sweden
    Posts
    15,151
    There is no difference using variables loaded from a textfile or variables that already is inside Flash.

    You load with..

    this.loadvariables("mytextFile.txt");


    The variables inside the textfiles should be separated by the & character...

    image1=farmhouse.jpg&image2=building2.jpg

    ...and so on.....


    How do you plan to use the variables. Would they be paths to images or....? And why use a textfile? For easier updating?

    -Pelle Piano
    // Image Gallery
    www.studiobild.com
    // Photo Blog
    http://talesofthepixel.blogspot.com

  8. #8
    Member
    Join Date
    Jun 2002
    Location
    Belgium
    Posts
    76
    A couple of days ago i made one. here is the fla and the xml file. I'm not going to send you alle the images, but if you look at the code you will see what I mean. In the scripts direcory yopu only need Titles.xml. Njoy
    Attached Files Attached Files

  9. #9
    i want to make the gallery updatable for the client, who is comuter illiterate. so, i want them to just be able to upload the file and i'll already have the script and everything in there, plus save on load time.

    diedtje- i tried to download and open but it said, "failed to open the document" it says that with every download i get from Flashkit. even from the tutorials and everything. so i couldn't see it.
    if it's not too much trouble. maybe you could just email me the plain .fla file. cause i got the rest.
    hue@we3kings.net

    or maybe somebody could point me in an xml direction.
    thanks.

  10. #10
    Senior Member
    Join Date
    Jun 2002
    Location
    Toronto, Canada
    Posts
    305
    I create custom galleries for photographers. I dont even use txt/xml files. I created a custom PHP file that recursively scans a folder and returns a flash array of every jpg that exists. I found that when you use text files, it can (after time) get messed up, and 1 or 2 images might bugger up if the user is constantly adding/deleting images. My method will accuratly display the images no matter how dynamic the website is.

    This is a recent gallery I have been working on, Im adding "comments" now. But till then you can get an idea of what a user can do

    <url removed>

    Let me know if this is what you are looking for.
    Last edited by untitledskate; 06-02-2004 at 02:55 PM.

  11. #11
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    I am making xml galleries and there is no mess up. The client never needs to touch the swf. here are two examples i recently made:
    In this example there are still some textfiles missing, which I have to add, that is why some pictures giv a strange text
    http://www.lindawalsh.org/

    http://flashscript.biz/MX2004/slides...eshow2004.html
    Last edited by cancerinform; 06-01-2004 at 09:18 PM.
    - The right of the People to create Flash movies shall not be infringed. -

  12. #12
    Senior Member
    Join Date
    Jun 2002
    Location
    Toronto, Canada
    Posts
    305
    Ok, someone on this board is a sicko... I posted that public link to my gallery only to find somebody erased all my images for weird gay bondage pictures... Thanks for taking advantage of a sample gallery.

    On another note, there were like 50 images removed... which means somebody sat there and clicked delete file 50 times.. then procceeded to upload this weird gay porn to my server... I was being over friendly giving server access but usually the flashkit community is cool like that. If you are reading this.. get off our board and post your gay porn elsewhere!

    PM if you want a link to the gallery
    Last edited by untitledskate; 06-02-2004 at 03:26 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center