home *** CD-ROM | disk | FTP | other *** search
- property ancestor
- global gRadioBtn
-
- on new me, sS
- set the ancestor of me to new(script "btnParentScript", sS)
- set gRadioBtn to 0
- return me
- end
-
- on button me
- set whichSprite to the myS of me
- set actNow to 0
- set dnClick to "click1"
- set upClick to "click2"
- set playedClick to 1
- repeat while the stillDown
- if rollOver(whichSprite) then
- if playedClick = 1 then
- puppetSound(dnClick)
- set playedClick to 0
- set the memberNum of sprite whichSprite to the myDnState of me
- set actNow to 1
- end if
- else
- if playedClick = 0 then
- puppetSound(upClick)
- set playedClick to 1
- set the memberNum of sprite whichSprite to the myUpState of me
- set actNow to 0
- end if
- end if
- updateStage()
- end repeat
- if actNow = 1 then
- if objectp(gRadioBtn) then
- set the memberNum of sprite the myS of gRadioBtn to the myUpState of gRadioBtn
- puppetSound("poit")
- else
- puppetSound(upClick)
- end if
- set gRadioBtn to me
- do(the myHandler of me)
- end if
- end
-
- on displayTopicText whichTopic
- set topicTextS to 6
- puppetSprite(topicTextS, 1)
- set the memberNum of sprite topicTextS to the number of member ("topic." & whichTopic)
- set the scrollTop of member the memberNum of sprite 6 to 0
- end
-