Thank you! I have implemented it and it works quite spectacularly.
This opens up a new world of possibility. Knowing the javascript DOM as I do, I am now hoping there is a way to address objects
by chapter and page directly. For example:
Code:
myVideo.Play()
The function above plays the "myVideo" object on the current page. What I wish for is something like this:
Code:
chapOne.pageSix.myVideo.Play()
The above (hypothetical) example references both the
chapter and page as well as the object. This would make it possible to reach across chapters and pages, "zero in" on an object and issue commands to it from any other page in the publication.
Is there any concept of public and private functions in opusScript -- and a way to reference methods for objects that are "encapsulated" in other chapters and pages?
Again, many thanks for solving my initial problem!