Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Fake Drag Bar - Stage
Set Linked Property of a Animated Gif Cast member
SMARTSCRIPT
Generic behavior to detect if the key has been pressed
Hybrid CD
Combinations and Permutations
Director To Go
Move MIAW
simComportIOCP Xtra
createSpecList
 

 

 

Behavior Sound rollover

Added on 6/29/1999

 

Compatibilities:
behavior D6_5 D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: CicicDejan

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.

--Sound rollover behavior by Dejan Cicic
--copyright DEXSOFT Multimedia - 1999

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

Send e-mail