Link to home
Start Free TrialLog in
Avatar of rrattie
rrattieFlag for United States of America

asked on

how to "scroll" between three different xml image galleries

I have 3 different "horizontal scrolling image galleries" that are populated using an xml file and I would like to be able to have someone click on any of the 3 different buttons  to get to the different galleries.

So if you are on gallery 1 and click on the #3 button, it would then scroll quickly across the contents of gallery1 and gallery2 and stop at the first image in gallery 3.

Any thoughts?
Avatar of wal_toor
wal_toor
Flag of Netherlands image

Hellow again rrattie,

So you have one large image strip that contains images from gallery 1, gallery 2 and gallery 3. Is that right?

If you click on button number 2 (that will scroll to the content of gallery 2) you need to calculate the amount of images in gallery 1, multiply this with the width of the images plus the spacing of the images, and then tell the filmstrip to move to that x coordinate.

Something like this? Do you have a working example online?

greetz,
walter
yeah my thoughts, you'll need create a skipTo function where you'll have o say skip to which one and twen to that gallery and based on how you're handling the other scrolling you might need to reset other values.

when you're in gallery 2 and it scrolls to the end - will that be the end of gallery 2 or gallery 3?
Avatar of rrattie

ASKER

Here are my files (xml, fla, jpgs..etc..)http://www.stillpixel.com/files/flash/help.zip
ASKER CERTIFIED SOLUTION
Avatar of wal_toor
wal_toor
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rrattie

ASKER

Walter, that works great!  Quick question.. do you know why each of the galleries loads slightly to the right of center?  
Avatar of rrattie

ASKER

Walter is the go to guy!
For some reason the hit area on the left is added to the positioning of the gallery. I have tried to remove this, but than the scrollpart on the left became instable and did'nt behave like it should.

thankz.

walter