Hey there
Might be that I just can't find the obvious, but thanks anyway for your replies.
What I am looking for is an option to limit scrolling to the bookmark you're currently in.
For example, let's assume you want to assemble a book with different chapters organized by bookmarks. The first chapter is 5 pages long; is it possible to allow scrolling over those 5 pages, but when you come to the bottom of the 5th page, scrolling won't take you to chapter 2, so that if you want to get there, you have to use the bookmarks?
(Before you ask, the example is maybe not chosen well, but it's easier to explain it that way than with the actual project I'm planning to use this "feature" for.)
It can't be done in a way that would work cross-platform or with non-Adobe software, plus it will make the application appear to be broken so it will annoy the living heck out of people.
The scripting solution would be to use bookmark actions to set a global variable marking the 'chapter', then to define Page Open events that forcibly change if you stray outside the allowed limit. The problem is that you cannot hide the page thumbnails, the scrollbar will act in a really strange way, and if someone manually advances with the page number field they can jump past the scripted event.
If you want a PDF to behave as if it were individual documents, make it that way then bolt the sections together as attachments to an index page, or in a PDF Portfolio.
If you grab every page's event listener it will react to a selection from the page field, but to be at all sensible about the amount of scripting involved, I think you'd want to limit the page actions to those at the bookmark boundaries. There are also plenty of situations where page events aren't triggered (e.g. when scrolling a card in a Portfolio, or when someone's just disabled JS).
North America
Europe, Middle East and Africa
Asia Pacific