Sound rollover. Just choose sound file member to play in channel 4 if rollover occurs. Attach this behavior to any button, and simply choose sound member.
Property SpriteNum
Property SoundMember
property brojac
property mySprite
on beginSprite me
set mysprite= the spritenum of me
set brojac=0
end
on MouseEnter me
set brojac=1
end MouseEnter
on MouseLeave me
set brojac=0
sound stop 4
updatestage
end MouseLeave
on MouseWithin me
if brojac=1 then
if not soundbusy(4) then
puppetsound 4, SoundMember
updatestage
brojac=0
end if
end if
end MouseWithin
on getPropertyDescriptionList
Properties = [:]
AddProp Properties,#SoundMember,[#Default:"",#Format:#Sound,#Comment:""]
Return Properties
end getPropertyDescriptionList
on getBehaviorDescription
BehDescription = "Sound rollover. Just choose sound file member to play in channel 4 if rollover occurs. "
Return BehDescription
end getBehaviorDescription
on getBehaviorTooltip
ToolTip = "Sound rollover"
Return ToolTip
end getBehaviorTooltip
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA