home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global theTopic, theTopicLine, artNumTemp
- if the mouseV < 88 then
- set listTemp to EMPTY
- cursor(4)
- set the castNum of sprite the clickOn to 979
- set the text of field 973 to EMPTY
- setHeadline("sectionlist")
- set the castNum of sprite 34 to 973
- set the locH of sprite 34 to 354
- set the locV of sprite 34 to 96
- spriteBox(21, 0, 0, 650, 490)
- set the text of field 972 to " "
- set the locH of sprite 25 to 354
- set the locV of sprite 25 to 80
- set the width of sprite 25 to 250
- updateStage()
- setDelimOn()
- set count to 0
- set preListTemp to field string(theTopic & theTopicLine)
- repeat with n = 2 to the number of lines in preListTemp
- if char 1 of line n of preListTemp = "E" then
- set count to count + 1
- end if
- if the number of items in line n of preListTemp = 1 then
- put line n of preListTemp & RETURN after listTemp
- next repeat
- end if
- put item 2 of line n of preListTemp & RETURN after listTemp
- end repeat
- set the text of field 973 to listTemp
- setDelimOff()
- if count = 1 then
- set artNumTemp to " " & count && "article"
- else
- set artNumTemp to " " & count && "articles"
- end if
- set the text of field 972 to string(artNumTemp)
- cursor(-1)
- setFieldTopic("numList")
- setHeadline("sectionList")
- end if
- end
-