[RESOLVED] Simple Gallery with text help.. PLEASE!
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 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.
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.
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 is
Code:
var 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);