This is a modified version of the Mediamacros behaviour.
I have tweeked it to run on PC/Mac and MX. Drop behaviour on to an up or down volume button.
Let me know if you have improved it.
Cheers
on mouseEnter me
sprite(me.spriteNum).member = rolloverMember
end
on mouseLeave me
sprite(me.spriteNum).member = defaultMember
end
on mouseDown me
sprite(me.spriteNum).member = clickMember
end
on mouseUp me
sprite(me.spriteNum).member = defaultMember
eachJump = 100.0/soundNotch
if whichWay = "Up" then
newVolume = baGetVolume(whatVolume) + eachJump
if integer(newVolume) >= 100 then
newVolume = 100
end if
else
newVolume = baGetVolume(whatVolume) - eachJump
if integer(newVolume) <=0 then
newVolume = 0
end if
end if
baSetVolume(whatVolume, integer(newVolume))
end
on beginSprite me
theVolume = baGetVolume(whatVolume)
defaultMember = (sprite spriteNum).member
end
on getBehaviorDescription me
describe = "This behavior is similar to the slider sound behavior but involves only an up and down button. Simply drag and drop and assign which is the up and which is the down button. Note that the sound notches can be different on this one."
return describe
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA