HyperCard 2.0 Tour: "forward" Handler Bug and Workaround



I cannot navigate through the whole HyperCard 2.0 Tour stack. When I get to
card 56 of the tour, I cannot use the button for card movement forward. All
other buttons function properly. The same thing happens if you are on card
58 and try to go back a card to the previous card.

Clicking on the "Next" button or pressing the right-arrow key on card 56 calls
a handler named "forward". "Forward" calls a SysEnvirons XFCN and bases its
choice of which card to go to on the value returned.

The XFCN is aware of all released Apple keyboards. However, the only
options for the version of the stack we have are "Macintosh Plus Keyboard",
"Standard ADB Keyboard" (includes the Apple IIGS Keyboard), and "Apple
Extended Keyboard" (includes both domestic versions). You will encounter
problems if you use any keyboard not listed above.

We don't know whether the tour stack will be localized to correct this
problem. As a workaround, you can replace the existing "forward" handler with
the one below.

on forward
hide message box
put SysEnv() into mySys

visual effect wipe left
if item 6 of mySys = "Macintosh Plus Keyboard"
or item 6 of mySys = "Standard ADB Keyboard"
or item 6 of mySys = "Apple Extended Keyboard"
then
go card item 6 of mySys
else
go card "Apple Extended Keyboard"
end if
end forward

Before modifying the script, you must set userLevel to 5 to do scripting.


Published Date: Feb 18, 2012