home *** CD-ROM | disk | FTP | other *** search
- on closeButton inkDown, inkUp
- stopSound(1, 10)
- set me to the clickOn
- set the ink of sprite me to inkDown
- repeat while the mouseDown
- updateStage()
- end repeat
- set the ink of sprite me to inkUp
- updateStage()
- end
-
- on ButtonClick DownCast, UpCast, keepSprite
- stopSound(1, 10)
- set me to the clickOn
- puppetSprite(me, 1)
- set the immediate of sprite me to 1
- set the castNum of sprite me to DownCast
- repeat while the mouseDown
- updateStage()
- end repeat
- set the castNum of sprite me to UpCast
- if keepSprite <> 1 then
- puppetSprite(me, 0)
- end if
- updateStage()
- if rollOver(me) then
- return 1
- else
- return 0
- end if
- end
-
- on ButtonSwitch state2, state1, theSpriteNum
- stopSound(1, 10)
- set me to the clickOn
- set x to the castNum of sprite theSpriteNum
- if x = state1 then
- set the castNum of sprite theSpriteNum to state2
- else
- set the castNum of sprite theSpriteNum to state1
- end if
- repeat while the mouseDown
- updateStage()
- end repeat
- updateStage()
- if rollOver(theSpriteNum) then
- return 1
- else
- set the castNum of sprite theSpriteNum to x
- return 0
- end if
- end
-
- on ButtonToggle otherSprite, otherCast, thisCast
- stopSound(1, 10)
- set me to the clickOn
- if the castNum of sprite me = thisCast then
- set the castNum of sprite me to otherCast
- set the castNum of sprite otherSprite to thisCast
- else
- set the castNum of sprite me to thisCast
- set the castNum of sprite otherSprite to otherCast
- end if
- updateStage()
- end
-