home *** CD-ROM | disk | FTP | other *** search
- property mySprite, myCast, pressedCast
-
- on birth me, spriteNum
- set mySprite to spriteNum
- puppetSprite(mySprite, 1)
- set myCast to the castNum of sprite mySprite
- set pressedCast to myCast + 1
- return me
- end
-
- on down me
- set the castNum of sprite mySprite to pressedCast
- repeat while the mouseDown
- if rollOver(mySprite) then
- set the castNum of sprite mySprite to pressedCast
- else
- set the castNum of sprite mySprite to myCast
- end if
- updateStage()
- end repeat
- end
-
- on up me
- global gLastRadioButton
- if the castNum of sprite mySprite = pressedCast then
- if objectp(gLastRadioButton) then
- unSelect(gLastRadioButton)
- end if
- set gLastRadioButton to me
- return 1
- else
- return 0
- end if
- end
-
- on select me
- global gLastRadioButton
- set gLastRadioButton to EMPTY
- down(me)
- up(me)
- end
-
- on unSelect me
- set the castNum of sprite mySprite to myCast
- end
-