home *** CD-ROM | disk | FTP | other *** search
- on doDateList
- global whDate, whyear, blockPos, overLay
- cursor(4)
- if the locH of sprite 34 < 400 then
- clearLists()
- end if
- set the castNum of sprite 40 to cast "blanker"
- setOffStage("35")
- set the text of field "dateList" to EMPTY
- if whyear >= 5 then
- hintsGrid()
- end if
- if whyear <= 4 then
- set BlueDateCast to item whyear of whDate & "bd"
- set the castNum of sprite 24 to cast string(BlueDateCast)
- set the locV of sprite 24 to 74
- set the locH of sprite 24 to value(item whyear of blockPos)
- set the blend of sprite 33 to 100
- set the castNum of sprite 33 to value(item whyear of overLay)
- set the locH of sprite 33 to 0
- set the locV of sprite 33 to 33
- set the locH of sprite 20 to value(item whyear of blockPos)
- set the height of sprite 20 to 346
- set the locH of sprite 23 to value(item whyear of blockPos) + 3
- set the text of field 972 to " "
- set the locH of sprite 25 to value(item whyear of blockPos)
- set the locV of sprite 25 to 118
- set the width of sprite 25 to 250
- setFieldTopic("numList")
- updateStage()
- set the text of field 971 to field string(item whyear of whDate)
- set theFullField to item whyear of whDate & "L"
- set theFieldToCount to field string(theFullField)
- set count to 0
- repeat with n = 1 to the number of lines in theFieldToCount
- if char 1 of line n of theFieldToCount = "E" then
- set count to count + 1
- end if
- end repeat
- if count = 0 then
- set the text of field 972 to " No articles"
- end if
- if count = 1 then
- set the text of field 972 to string(" " & count && "article")
- end if
- if count > 1 then
- set the text of field 972 to string(" " & count && "articles")
- end if
- setHeadline("dateList")
- setFieldTopic("numList")
- cursor(-1)
- end if
- end
-
- on topicFieldList theClickedLine
- global theSection, theSectionT, theTopic, theTopicLine, theTopicTitle, choiceMade
- if theClickedLine <> -1 then
- if line theClickedLine of field "topicHeadtemp" <> EMPTY then
- set choiceMade to 1
- cursor(4)
- set theTopicLine to theClickedLine
- set theTopicTitle to line theClickedLine of field "topicHeadtemp"
- set the text of field "topicHead" to theTopicTitle
- setFieldTopic("topicHead")
- set the castNum of sprite 30 to theSectionT + 20
- set the castNum of sprite 40 to 17
- setOffStage("31,33,34,43,44")
- set the blend of sprite 33 to 100
- updateStage()
- set theSection to theSectionT
- if the frame < 5 then
- set the castNum of sprite 35 to 977
- else
- set the castNum of sprite 35 to 978
- photoLinkCheckOff()
- photoLinkCheck()
- end if
- set the locH of sprite 35 to 454
- set the locV of sprite 35 to 72
- updateStage()
- if the frame < 5 then
- set greenTemp to line 1 of field string(theTopic & theTopicLine)
- repeat with n = 1 to 7
- set the castNum of sprite (n + 6) to cast value(item n + 1 of greenTemp)
- end repeat
- spriteBox(1, 162, 264, 640, 266)
- end if
- cursor(-1)
- end if
- end if
- end
-