home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global natta, doko
- set the cursor of sprite 1 to [32, 33]
- end
-
- on adown
- puppetSound("ON.aif")
- set the cursor of sprite 3 to [30, 31]
- puppetSprite(5, 1)
- repeat while mouseDown()
- set the castNum of sprite 3 to the number of cast "23"
- updateStage()
- wait(2)
- set the castNum of sprite 3 to the number of cast "23"
- updateStage()
- wait(2)
- end repeat
- end
-
- on aup
- set the cursor of sprite 3 to [34, 35]
- puppetSound("OFF.aif")
- set the castNum of sprite 3 to the number of cast "26"
- updateStage()
- wait(2)
- set the castNum of sprite 3 to the number of cast "102"
- updateStage()
- wait(3)
- set the castNum of sprite 1 to the number of cast "101"
- updateStage()
- end
-
- on onmuscek
- global natta, doko
- set doko to mouseCast()
- if doko = 1 then
- set the cursor of sprite 2 to [34, 35]
- if natta = 1 then
- play frame "on"
- puppetSound("pi.aiff")
- end if
- puppetSprite(3, 1)
- repeat while mouseCast() = 1
- if the mouseDown then
- exit repeat
- end if
- set the castNum of sprite 3 to the number of cast "29"
- updateStage()
- set the castNum of sprite 3 to the number of cast "19"
- updateStage()
- end repeat
- end if
- if doko = -1 then
- set the castNum of sprite 3 to the number of cast "101"
- set the cursor of sprite 2 to [44, 45]
- set natta to 1
- set doko to 0
- puppetSound(0)
- else
- nothing()
- end if
- end
-
- on wait waitticks
- startTimer()
- repeat while the timer < waitticks
- nothing()
- end repeat
- end
-