property OverSound, OverSoundChannel
property X, Y, Num
on MouseWithin me
if NOT SoundBusy(OverSoundChannel) then
puppetSound OverSoundChannel, OverSound
end if
if the lastEvent < 20 then
set the volume of sound OverSoundChannel to 255
else
set the volume of sound OverSoundChannel to 0
end if
end
on mouseLeave me
puppetSound OverSoundChannel, FALSE
end
on beginSprite me
set Num to the spriteNum of me
end
on getPropertyDescriptionList
set p_list =[ #OverSound: [#comment:"Rollover Sound:", #format:#sound, #default:"" ], ¬
#OverSoundChannel:[#comment:"Channel Number:", #format:#integer, #default: 1 ]]
return p_list
end
on getBehaviorDescription
return ¬
"Use this simple behavior to have a Sound play while you move the mouse over the sprite"
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA