;

PDA

Click to See Complete Forum and Search --> : [RESOLVED] Simple Gallery with text help.. PLEASE!


tkingstl
07-08-2008, 11:50 PM
Here's what I have/need. I have tried several galleries available on the koolexchange with no avail. The closest one was Blanius' simple gallery which looked really promising, but I couldn't figure it out to save my soul.

Basically my main page has 3 content panes, named gallery, gallery_text, and gallery_thumbs. I am trying to put together a script that populates the thumbs' pane with thumbnails, 3 in a row, scrolling up and down.

[][][]
[][][]
[][][]
[]

When clicked, a thumbnail would load a corresponding image into the gallery pane with some kind of transition, as well as a caption in the text content pane.

I can just cram a bunch of images into the fun file and do it all manually but that just stinks! I am trying to get it to populate the thumbnail content pane by reading the directory 'thumbs'. I am assuming that there will be an xml file required for the captions, but I am pretty noob at this stuff, so I'm unsure.

At this point it is just driving me nuts and I would pay some one for some help, I have torn other galleries apart and just don't ee the functionality to do what I need, and it can't be too complicated, can it?


The files: http://www.tony-king.com/bsk1000.zip (http://tony-king.com/bsk1000.zip)

w.brants
07-09-2008, 02:17 AM
The best way to do what you want, is probably to create a movieclip with some actionscript that is reading the images and places them at the right position so you get that three in a row layout.
Add that movieclip to the symbol library and provide a link name for it.
When you have done that, you can select the link name for content in the content pane.

tkingstl
07-09-2008, 01:52 PM
Does anyone have the Actionscript to accomplish this? I can't get mine to do anything but break =/

taurusguy
07-09-2008, 03:59 PM
I just wanted to point you guys to my thread on this .... i was using necromanthus gallery .. which i dont think you can find anymore .. but after making a few adjustments to it .. it works great .. i havent applied the changes of the gallery discussed in my online version of my site .. but its coming once i update all my galleries.

http://board.flashkit.com/board/showthread.php?t=768742

Check it out ... hope the info in that thread can hlp.

Stoke Laurie
07-09-2008, 06:04 PM
Here's the link to necro's gallery http://necromanthus.com/KoolMoves/AK/AK.html
take a look about in there, he has loads of good stuff.

w.brants
07-10-2008, 02:52 AM
In case you want to use the approach I mentioned before, create a movieclip in the symbol library with a link name and specify that link name as content for the gallery_thumbs contentpane.

The code to put inside the movieclip in the symbol library isvar i = 0;
while (i < 11){
var th = this.createEmptyMovieClip('th' + i, i);
var ti = th.createEmptyMovieClip('img', 0);
th._x = (i % 3) * 80;
th._y = Math.floor(i / 3) * 80;
i++;
th.filename = i + '.jpg';
ti.loadMovie('thumbs/' + th.filename);
th.onRelease = function(){
_root.gallery.setContent(4, 'gallery/' + this.filename);
}
}
lineStyle(0,0,0);
lineTo(th._x + 80, th._y + 80);
scrollRect = null;
_component._update(true);

blanius
07-12-2008, 10:58 PM
Using Wilbert's excellent code example Here it is fixed for you.

Note for the text to show you need a file for each image called
1.txt
2.txt etc..... in the gallery folder.

w.brants
07-13-2008, 02:16 AM
I already helped him out with his requests Bret.

@tkingstl,
At the 'Thread Tools' drop down menu there's an option to mark a thread 'Resolved'.