Version 4 (modified by danvisel, 16 years ago) (diff) |
---|
7. Working with links
A link in Sophie is an action that is triggered when the book is read by the reader. A link can be triggered when the reader turns to a particular page; it can also be triggered when the reader clicks on a graphic. When this happens, different other things can happen: the book might turn to another page, or a frame might be hidden and shown.
In this release of Sophie, links can be set on the page or on frames. Both the page and frames have a link halo; open this to reveal the link HUD. All links have two parts: when something happens, something else happens.
The first "something happens", the trigger, can be chosen from a list. For page-based links, it can only be "when this page is opened" or "when this page is closed". For frame-based links, this can be when the frame is shown or hidden, but it's more likely to be when the user's mouse interacts with the frame in some way: when the user clicks on the frame, or moves the mouse over it.
The second "something happens", the action, can also be chosen from a list. The list of possible actions to take varies depending on which trigger is chosen. Actions can be going to a page or hiding or showing a frame.
For some actions, a further parameter is required, the target of the link. This is not always the case - if you make a link that says "on mouse click" "go to next page", you don't need a target, because Sophie knows which page the next page is. But if you make a link that says "on mouse click" "go to page", Sophie doesn't know which page that is. A third field is opened up where you can choose which page to go to. If your action is to show or hide a frame, a list of all possible frames appears as a drop-down menu.
Link functionality is only partial in this release of Sophie. In the future, links will become a major part of Sophie and Sophie books.