home *** CD-ROM | disk | FTP | other *** search
- on showNotes
- global castData, noteData, notePages, currPage, keyHotspots
- setUpSprites("6-7", 1, 1)
- set theCastNum to value(item 2 of castData)
- if theCastNum < 1000 then
- set the castNum of sprite 6 to the number of cast theCastNum
- else
- set theCmd to item 3 of castData
- set theParam1 to item 4 of castData
- set theParam2 to item 5 of castData
- if the soundBusy of 1 then
- stopSound(1, 10)
- else
- do(theCmd && QUOTE & theParam1 & QUOTE & "," & theParam2)
- end if
- exit
- end if
- set notePages to value(item 3 of castData)
- set x1 to value(item 4 of castData)
- set y1 to value(item 5 of castData)
- set x2 to value(item 6 of castData)
- set y2 to value(item 7 of castData)
- spriteBox(6, x1, y1, x2, y2)
- repeat with n = 1 to the number of lines in keyHotspots
- if line n of keyHotspots contains item 1 of castData then
- set noteData to line n of keyHotspots
- exit repeat
- end if
- end repeat
- delete item 1 to 6 of noteData
- set currPage to 1
- set the ink of sprite 6 to 36
- end
-
- on goNextPage whichWay
- global markerlist
- unLoadCast(the castNum of sprite 2)
- set x to marker(0)
- set t to the number of lines in markerlist
- repeat with n = 1 to t
- if x = line n of markerlist then
- set j to n + whichWay
- if j > t then
- exit
- else
- if j < 1 then
- exit
- end if
- end if
- set theFrame to line j of markerlist
- exit repeat
- end if
- end repeat
- setUpSprites("5-8;10-12;37-48", 0)
- goNextLoc(the movie, theFrame, marker(0))
- if the soundBusy of 1 then
- stopSound(1, 10)
- end if
- end
-
- on goToArticle incORdec
- global articleList
- unLoadCast(1, 100)
- set moviePtr to 0
- set x to the number of lines in articleList
- set y to the number of items in line 1 of articleList
- repeat with n = 1 to x
- if the movie = item y of line n of articleList then
- set moviePtr to n
- exit repeat
- end if
- end repeat
- put moviePtr
- if moviePtr > 0 then
- set moviePtr to n + incORdec
- if moviePtr <= 0 then
- set moviePtr to x
- else
- if moviePtr > x then
- set moviePtr to 1
- end if
- end if
- set destMovie to item y of line moviePtr of articleList
- setUpSprites("6-8;10-12;37-48", 0)
- goNextLoc(destMovie, 1, marker(0))
- if the soundBusy of 1 then
- stopSound(1, 10)
- end if
- end if
- end
-