home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- tell the stage
- pause()
- end tell
- Set_NumOfCredit(18)
- set the puppet of sprite 2 to 1
- set the puppet of sprite 5 to 1
- set the puppet of sprite 6 to 1
- Set_pageNum(1)
- LoadPage()
- cursor([402, 403])
- set the cursor of sprite 10 to [404, 405]
- end
-
- on LoadPage
- set the castNum of sprite 2 to the number of cast ("Credit" & get_PageNum())
- if get_PageNum() < get_NumOfCredit() then
- set the castNum of sprite 6 to the number of cast "NEXT"
- set the cursor of sprite 6 to [404, 405]
- else
- set the castNum of sprite 6 to the number of cast "NEXT_F"
- set the cursor of sprite 6 to [400, 401]
- end if
- if get_PageNum() > 1 then
- set the castNum of sprite 5 to the number of cast "BACK"
- set the cursor of sprite 5 to [404, 405]
- else
- set the castNum of sprite 5 to the number of cast "BACK_F"
- set the cursor of sprite 5 to [400, 401]
- end if
- end
-
- on handleNextpage
- Set_pageNum(get_PageNum() + 1)
- LoadPage()
- updateStage()
- end
-
- on handleBackpage
- Set_pageNum(get_PageNum() - 1)
- LoadPage()
- updateStage()
- end
-
- on Set_pageNum theP
- global CDpageNum
- set CDpageNum to theP
- end
-
- on get_PageNum
- global CDpageNum
- return CDpageNum
- end
-
- on Set_NumOfCredit theP
- global NumOfCredit
- set NumOfCredit to theP
- end
-
- on get_NumOfCredit
- global NumOfCredit
- return NumOfCredit
- end
-
- on UpdateCursors theSp, theCursor
- if theCursor = 0 then
- set the cursor of sprite theSp to theCursor
- else
- set CursorCastNum to getCursor(theCursor)
- set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
- end if
- end
-
- on handleExit
- global CreditWD
- tell the stage
- closeCreditWD()
- end tell
- end
-
- on switchButt spriteNum, castDown, macroName
- set flag to 0
- set SaveCast to the castNum of sprite spriteNum
- set flag to swapCast(spriteNum, SaveCast, castDown)
- repeat while the stillDown
- set flag to swapCast(spriteNum, SaveCast, castDown)
- end repeat
- if flag = 1 then
- sound stop 1
- do(macroName)
- end if
- end
-
- on swapCast spriteNum, SaveCast, castDown
- if rollOver(spriteNum) then
- set the castNum of sprite spriteNum to the number of cast castDown
- updateStage()
- return 1
- else
- set the castNum of sprite spriteNum to the number of cast SaveCast
- updateStage()
- return 0
- end if
- end
-
- on initCursorCastNum
- global CursorCastNum
- set CursorCastNum to "400,402,404,406"
- end
-
- on getCursor cursorNum
- global CursorCastNum
- return integer(item cursorNum of CursorCastNum)
- end
-