home *** CD-ROM | disk | FTP | other *** search
- global LorR, linecount1, linecount2, listline1, listline2
-
- on mouseUp
- if LorR = "def1" then
- if listline1 = the lineCount of member "blanklist1" then
- exit
- end if
- set listline1 to listline1 + 1
- set nextdef1 to line listline1 of the text of member "blanklist1"
- put nextdef1 into field "defHeading"
- if line 1 of the text of member nextdef1 of castLib "glossary" = ("$" & nextdef1) then
- set picTempText to the text of member nextdef1 of castLib "glossary"
- delete line 1 of picTempText
- put picTempText into field "defTextpic"
- set the locV of sprite 23 to 246
- go(15)
- puppetSprite(20, 1)
- set the member of sprite 20 to member nextdef1 of castLib "image"
- else
- set the member of sprite 20 to "blankPic"
- put the text of member nextdef1 of castLib "glossary" into field "defText"
- set the locV of sprite 23 to 151
- go(10)
- end if
- else
- if listline2 = the lineCount of member "blanklist2" then
- exit
- end if
- set listline2 to listline2 + 1
- set Nextdef2 to line listline2 of the text of member "blanklist2"
- put Nextdef2 into field "defHeading"
- if line 1 of the text of member Nextdef2 of castLib "glossary" = ("$" & Nextdef2) then
- set picTempText to the text of member Nextdef2 of castLib "glossary"
- delete line 1 of picTempText
- put picTempText into field "defTextPic"
- set the locV of sprite 23 to 246
- go(15)
- puppetSprite(20, 1)
- set the member of sprite 20 to member Nextdef2 of castLib "image"
- else
- set the member of sprite 20 to "blankPic"
- put the text of member Nextdef2 of castLib "glossary" into field "defText"
- set the locV of sprite 23 to 151
- go(10)
- end if
- end if
- end
-