home *** CD-ROM | disk | FTP | other *** search
- on HiliteButton
- global button, newCast, oldCast
- set button to the clickOn
- if the mouseCast = the number of cast "ICON A-Z" then
- set newCast to the number of cast "ICON A-Z hilite"
- set oldCast to the number of cast "ICON A-Z"
- HiliteWhich("klick")
- else
- if the mouseCast = the number of cast "ICON Auge" then
- set newCast to the number of cast "ICON Auge hilite"
- set oldCast to the number of cast "ICON Auge"
- HiliteWhich("klick")
- else
- if the mouseCast = the number of cast "ICON Info" then
- set newCast to the number of cast "ICON Info hilite"
- set oldCast to the number of cast "ICON Info"
- HiliteWhich("klick")
- else
- if the mouseCast = the number of cast "ICON PfeilR" then
- set newCast to the number of cast "ICON PfeilR hilite"
- set oldCast to the number of cast "ICON PfeilR"
- HiliteWhich("klick")
- else
- if the mouseCast = the number of cast "ICON PfeilL" then
- set newCast to the number of cast "ICON PfeilL hilite"
- set oldCast to the number of cast "ICON PfeilL"
- HiliteWhich("klick")
- else
- if the mouseCast = the number of cast "ICON maikäfer" then
- set newCast to the number of cast "ICON maikäfer hilite2"
- set oldCast to the number of cast "ICON maikäfer"
- HiliteWhich("marimba")
- else
- if the mouseCast = the number of cast "ICON maikäfer2" then
- set newCast to the number of cast "ICON maikäfer hilite"
- set oldCast to the number of cast "ICON maikäfer2"
- HiliteWhich("marimba")
- end if
- end if
- end if
- end if
- end if
- end if
- end if
- end
-
- on HiliteWhich sound
- global button, newCast, oldCast
- puppetSound(sound)
- set the puppet of sprite button to 1
- set the castNum of sprite button to newCast
- updateStage()
- repeat while the mouseCast = newCast
- if the mouseCast <> newCast then
- exit repeat
- end if
- if the mouseDown = 0 then
- exit repeat
- end if
- end repeat
- wait(4)
- set the castNum of sprite button to oldCast
- set the puppet of sprite button to 0
- updateStage()
- end
-