home *** CD-ROM | disk | FTP | other *** search
- property ancestor, myOnUpstate, myOnRollstate, myOnDnstate, myOnOff
-
- on new me, sS
- set the ancestor of me to new(script "btnParentScript", sS)
- set the myOnUpstate of me to the memberNum of sprite sS + 3
- set the myOnRollstate of me to the memberNum of sprite sS + 4
- set the myOnDnstate of me to the memberNum of sprite sS + 5
- set the myOnOff of me to 0
- return me
- end
-
- on doRoll me
- if (the mouseCast = the myUpState of me) and rollOver(the myS of me) then
- set the memberNum of sprite the myS of me to the myRollState of me
- else
- if (the mouseCast = the myOnUpstate of me) and rollOver(the myS of me) then
- set the memberNum of sprite the myS of me to the myOnRollstate of me
- else
- if (the mouseCast = the myRollState of me) and rollOver(the myS of me) then
- else
- if (the mouseCast = the myOnRollstate of me) and rollOver(the myS of me) then
- else
- if the myOnOff of me = 0 then
- set the memberNum of sprite the myS of me to the myUpState of me
- else
- set the memberNum of sprite the myS of me to the myOnUpstate of me
- end if
- end if
- end if
- end if
- end if
- 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
- set the myOnOff of me to not (the myOnOff of me)
- if the myOnOff of me then
- set the memberNum of sprite the myS of me to the myOnUpstate of me
- else
- set the memberNum of sprite the myS of me to the myUpState of me
- end if
- puppetSound(upClick)
- do(the myHandler of me)
- end if
- end
-
- on displayTopicText whichTopic
- set topicTextS to 11
- 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 topicTextS to 0
- end
-
- on QTstartStop movieS
- if the memberNum of sprite movieS then
- if the type of member the memberNum of sprite movieS = #digitalVideo then
- set the movieRate of sprite movieS to not (the movieRate of sprite movieS)
- end if
- end if
- end
-