Log in

View Full Version : Thumbnail gallery problem



tkfranz
11-07-2007, 04:07 PM
When i press a thumbnail number for example 9 it should scroll through pictures either left or right to get to a selected picture number ( www.kfgallery.us) what coordinates should i add to this script?

on (release) {
if (_root.xkoord>-554) {
_root.xkoord -= 418;
}
}

This only moves to the left or right one picture at a time

BLiZZaRD
11-08-2007, 04:06 AM
You are using the co-ordinates wrong. You are assigning a co-ord's to the currently viewable picture, and you have applied the script to the arrow buttons. I don't know what you have on the thumbnails, but I assume you have used a mask and the images are one continuous MC?

Or you are loading through XML and tweening the slide. Depending on your codes on the thumbs and the method you use to display the pics there are different ways to scroll through them. Some better than others.

Give me a few more details and I will give you some options.

tkfranz
11-08-2007, 04:35 PM
The script i used was already in the arrow buttons and there is no code what so ever on the thumbnails. I tried to play with that short script that arrow button uses, another words i tried to apply that script into each thumbnail and add another portion of coordinates, but i am just a beginning person. The only major scripting that i have done is a contact form :). I though this is going to be an easy one. Today is a third day that i am playing with it. I thought of buying a book since i couldn't find any thing on the internet, but is book going to help me with this at all? So there is no code on the thumbnails This is just one problem but now since you mentioned xml i started to wonder that i cannot just add pictures to flash file since it is going to be loading forever, so to make the thumbnails working and adding xml code to it is another :). Any suggestions? :)

BLiZZaRD
11-09-2007, 04:13 AM
To use the thumb nails you will need to give them code. You will also need to give the top left corner of each picture a registration point and that picture an instance name. Then on the thumbnails you can call the scrolling function to go to the co-ordinates of said picture.

It's a little complex but nothing too hard.