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
Protected Code
E-mailExec 2.5
Delete one or more items
Angle detection by J.R.D.R.
RegistryReader
cXtraTwain
Date Master
SiteSearch Indexer
simZip Xtra
Printing Acrobat files with Buddy API
 

 

 

Behavior Sound FadeIn

Added on 7/7/2000

 

Compatibilities:
behavior D7 D8 Mac PC Shockwave

This item has not yet been rated

Author: ChristianKrauter

Drop this behavior on a button and adjust the time, volume to fadein!

-- copyright Christian Krauter
-- Free to use for MediaMacros readers
-- feel free to send me an email christian@simplicityhq.com

property pMemberNormal, pMemberRollover
property pSoundMember, pStartVolume, pVolume, pChannel, pFadeIn


on getPropertyDescriptionList me
  list = [:]
  addProp list, #pMemberRollover, [#comment: "Wich Member for rollover?",#format: #bitmap, #default: ""]
  addProp list, #pSoundMember, [#comment: "Which Sound member to fade?",#format: #sound, #default: ""]
  addProp list, #pVolume, [#comment: "What sound Volume?", #format:#integer, #range: [#min:0, #max:255], #default: 0]
  addProp list, #pChannel, [#comment: "What sound channel?", #format:  #string, #range: [#min:1, #max:8], #default: 1]
  addProp list, #pFadeIn, [#comment: "How many Milliseconds to fade?",  #format: #string, #default: 3000]
  return list
end

on beginSprite me
  pMemberNormal = sprite(me.spriteNum).member
end

on mouseEnter me
  sprite(me.spriteNum).member = pMemberRollover
end

on mouseLeave me
  sprite(me.spriteNum).member = pMemberNormal
end

on mouseUp me
  sound(pChannel).volume = 0
  sound(pChannel).play(member(pSoundMember))
  sound(pChannel).volume = pVolume
  sound(pChannel).fadeIn(pFadeIn)
end

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail