home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global sprNum, sprUp, sprDown
- set sprNum to 17
- set sprUp to 12
- set sprDown to 13
- set sprGrayed to 19
- puppetSprite(sprNum, 1)
- if the memberNum of sprite sprNum = sprGrayed then
- exit
- end if
- set the memberNum of sprite sprNum to sprDown
- updateStage()
- repeat while the stillDown
- if rollOver(sprNum) then
- set the memberNum of sprite sprNum to sprDown
- else
- set the memberNum of sprite sprNum to sprUp
- end if
- updateStage()
- end repeat
- end
-
- on mouseUp
- global sprNum, sprUp, sprDown, sprGrayed
- if the memberNum of sprite sprNum = sprGrayed then
- exit
- end if
- if the memberNum of sprite sprNum = sprDown then
- set the memberNum of sprite sprNum to sprUp
- updateStage()
- go(the frame - 1)
- end if
- end
-