on beginSprite me
set s=the spriteNum of me
if not alphaManiac(s) then exit
--set initial hue value
hsb(sprite s,[hueShift:pOff])
end
on mouseEnter me
--set Hand cursor when rollover occurs
cursor 280
--optional sound for rollover
if OverSoundFlag then
puppetsound 4,OverSound
end if
set s=the spriteNum of me
if not alphaManiac(s) then exit
--set new Hue value for rollover member
hsb(sprite s,[animMode:#Range,numFrames:pSpeed, startHue:pOff, endHue:pOn])
end
on mouseLeave me
--old cursor when mouse leave
cursor -1
set s=the spriteNum of me
if not alphaManiac(s) then exit
--restore start hue values
hsb(sprite s,[animMode:#Range,numFrames:pSpeed, startHue:pOn, endHue:pOff])
end
on mouseDown me
--play sound on mouseDown
puppetsound 4,clickSound
set s=the spriteNum of me
if not alphaManiac(s) then exit
--set hue for clicked state
hsb(sprite s,[animMode:#Range,numFrames:1, startHue:pOn, endHue:pMouseDown])
end
on mouseUp me
set s=the spriteNum of me
if not alphaManiac(s) then exit
--restore hue value for rollover member
hsb(sprite s,[animMode:#Range,numFrames:1, startHue:pMouseDown, endHue:pOn])
--optionally you can set movie and marker name to play
if movieFlag then
if FrameFlag then
play frame myFrame of movie myMovie
else
play movie myMovie
end if
else
if FrameFlag then
play frame myFrame
else
nothing
end if
end if
end mouseUp