I modified the first stack I posted so that images in the horizontal scroller scroll into view after scrolling. That way you have one image centered at a time.
Should be generic enough for other/more pictures.
Kind regards
Bernd
Edit: I tested it on my iPhone G3 and the snapping to the image after scrolling was a little too slow.
To speed that up you can increase the stepsize in the repeat loop to 10 in the card script in the "findNearest" handler
Code: Select all
repeat with i = tCurrentLoc to tClose step 10 -- change stepsize
set the hScroll of group "picGroup" to i
wait 5 milliseconds with messages
end repeat
else
repeat with i = tCurrentLoc down to tClose step - 10 -- change stepsize
set the hScroll of group "picGroup" to i
wait 5 milliseconds with messages
end repeat