Sound Fade Function()?

Hi …
I want to make a function to fade sound, but NO CLUE TO START!!

MovieClip.protype.fade = function(soundName, fadeTo){
}

Is soundObject can do this way?? i don’t know… please help!!

or anybody already make the function?? please tell me…

would this be of any help? :slight_smile:

or this

http://www.flashdevils.com/showthread.php?s=&threadid=18071&highlight=fade+volume

:slight_smile:

this might be what i lookin for…(not finished exam):slight_smile:
thank’s ahmed!!

need help again…

the link is good but the AS is too much for me…:slight_smile:
is there any easier AS for me?

this is what i’ve been writing:

this.createEmptyMovieClip("sound01", 1);
sound01.createEmptyMovieClip("clip", 0);
sound01.clip = new Sound(this.sound01);
sound01.clip.attachSound("backgroundMusic");
//
this.createEmptyMovieClip("sound02", 2);
sound02.createEmptyMovieClip("clip", 0);
sound02.clip = new Sound(this.sound02);
sound02.clip.attachSound("rumbleLoop");
//
this.createEmptyMovieClip("sound03", 3);
sound03.createEmptyMovieClip("clip", 0);
sound03.clip = new Sound(this.sound03);
sound03.clip.attachSound("slideSound");

have to do this if i want to control every sound isn’t it?

now i want to make a fade function that specify whichSound/fadeMethod(in or out)/duration.

Sound.protoype.fadeSound = function(whichSound, fadeMethod, duration){
}

anybody help me?? please???..
thank u very much…

someone share this to me please???
where do i begin??

strange??? this use to be the fast & reliable forum for me…:frowning:

(still waiting with desperado face…):frowning:

To get something easier, you can add a property that you call “volume” to the sound prototype:

Sound.prototype.addProperty("volume",Sound.prototype.getVolume,Sound.prototype.setVolume);

And then:

Sound.prototype.fadeOut = function(){
  this.volume-=10;
  if (this.volume < 0) {
    this.volume = 0;
    delete this.onEnterFrame;
  }
}

monSon = new Sound(this);
monSon.attachSound("son");
monSon.start(0,15);

this.onMouseDown = function(){
  monSon.fadeOut();
}

pom :slight_smile:

Thank GOd!!
God bless u ilyaslamasse
thank u very much Menior Sember!!! lol…

Mmmhh… It shouldn’t work :stuck_out_tongue:

FEEL LIKE I’M GONNA KILL MY SELF!!!
I’m too sleepy to check this out…

MENIOR SEMBER(why i always lol when type it?)… THANK"S FOR THE LATE APRIL MOP!!