put line it of card field "CardNames" into destination
if (char 1 of destination = ".") then
answer "Sorry, that section isn't available yet." with "Understood"
select char 1 to 0 of card field "Index"
exit mouseDown
else if (char 1 of destination = "@" and length(destination) = 1) then
answer "Please choose an entry from this section." with "OK"
select char 1 to 0 of card field "Index"
exit mouseDown
end if
if (char 1 of destination = "@") then
delete char 1 of destination
visual dissolve to card
go to background destination
else
visual iris open
go card destination
end if
end mouseDown
-- part 2 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=263 top=23 right=39 bottom=503
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 256
-- line height: 13
-- part name:
----- HyperTalk script -----
on enterInField
set cursor to watch
put polish(target) into card field result
end enterInField
on returnInField
if (commandKey() = down) then enterInField
else pass returnInField
end returnInField
-- part 4 (field)
-- low flags: 80
-- high flags: 6004
-- rect: left=10 top=38 right=316 bottom=250
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: CardNames
-- part 5 (button)
-- low flags: 80
-- high flags: A004
-- rect: left=321 top=290 right=312 bottom=444
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Update Index
----- HyperTalk script -----
on mouseUp
if (visible of card field "CardNames" = true) then
hide card field "CardNames"
set the name of the target to "Update Index"
set the lockText of card field "Index" to true
else
show card field "CardNames"
set the lockText of card field "Index" to false
set the name of the target to "End Update"
end if
end mouseUp
-- part contents for background part 9
----- text -----
DemoStack 0.9
-- part contents for background part 1
----- text -----
Index
-- part contents for background part 12
----- text -----
Card #2
-- part contents for background part 14
----- text -----
This card is an index to the rest of the stack. You can go to a specific section by clicking on the appropriate line in the field to the right. Following are brief descriptions of each of the sections.
________________________________
-- Installation
Explains how to install the programs into your own stacks.
-- Script Examples
A set of examples showing how the programs can be used.