home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set WhichSprite to the clickOn
- puppetSprite(WhichSprite, 1)
- set the castNum of sprite WhichSprite to the number of cast "OK lit"
- repeat while the stillDown
- updateStage()
- end repeat
- end
-
- on mouseUp
- global gPTimerSet, gPresentationTime, gPresentingTo, gLightColor
- set the castNum of sprite 12 to the number of cast "OK"
- updateStage()
- if the text of field "Timer Amount" = EMPTY then
- alert("You need to enter a number into the Timer field!")
- exit
- end if
- set whatTime to value(the text of field "Timer Amount")
- if integerp(whatTime) then
- startTimer()
- set gPTimerSet to 1
- set gPresentationTime to whatTime
- set the timeoutLength to 3600 * whatTime
- set gPresentingTo to the text of field "Who To"
- put gPresentingTo into field "CompanyDisplay"
- set gLightColor to "Green timer light lit"
- puppetSprite(12, 0)
- updateStage()
- go("start")
- exit
- end if
- if floatp(whatTime) then
- startTimer()
- set gPTimerSet to 1
- set gPresentationTime to whatTime
- set the timeoutLength to 3600 * whatTime
- set gPresentingTo to the text of field "Who To"
- put gPresentingTo into field "CompanyDisplay"
- set gLightColor to "Green timer light lit"
- puppetSprite(12, 0)
- updateStage()
- go("start")
- exit
- end if
- alert("You need to enter a number greater than 2!")
- puppetSprite(12, 0)
- updateStage()
- end
-