home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global soundobj, video, videosprite
- set the constraint of sprite the clickOn to castsprite("soundconstraint")
- set tempsoundlevel to the soundLevel
- setSoundLevel(soundobj)
- set spritenum to castsprite("soundconstraint")
- set startH to the left of sprite spritenum
- set endH to the right of sprite spritenum
- set the volume of sound 1 to min(max((the locH of sprite castsprite("soundThumb") - startH) * 256 / (endH - startH), 0), 255)
- put the volume of sound 1
- if objectp(video) then
- set the volume of sprite videosprite to the soundLevel * 255 / 7
- end if
- end
-